Commits

Marcus Calhoun-Lopez authored ef8a30554a3
muparser: respect configure.optflags flags
No tags

math/muparser/files/patch-configure.diff

Added
1 +--- configure.orig 2015-08-16 07:23:14.000000000 -0700
2 ++++ configure 2018-06-18 05:04:22.000000000 -0700
3 +@@ -2093,7 +2093,7 @@
4 + program_prefix=${target_alias}-
5 +
6 +
7 +-# We want to inhibit AC_PROG_C* macros adding the default "-g -O2" flags.
8 ++# We want to inhibit AC_PROG_C* macros adding the default "-g" flags.
9 + # To do so, make sure that the variables are not unset - it is ok if they are
10 + # empty. However, their value MUST be retained, since one may have
11 + # called ./configure CFLAGS=-foobar.
12 +@@ -3021,13 +3021,13 @@
13 + CFLAGS=$ac_save_CFLAGS
14 + elif test $ac_cv_prog_cc_g = yes; then
15 + if test "$GCC" = yes; then
16 +- CFLAGS="-g -O2"
17 ++ CFLAGS="-g"
18 + else
19 + CFLAGS="-g"
20 + fi
21 + else
22 + if test "$GCC" = yes; then
23 +- CFLAGS="-O2"
24 ++ CFLAGS=""
25 + else
26 + CFLAGS=
27 + fi
28 +@@ -3368,13 +3368,13 @@
29 + CXXFLAGS=$ac_save_CXXFLAGS
30 + elif test $ac_cv_prog_cxx_g = yes; then
31 + if test "$GXX" = yes; then
32 +- CXXFLAGS="-g -O2"
33 ++ CXXFLAGS="-g"
34 + else
35 + CXXFLAGS="-g"
36 + fi
37 + else
38 + if test "$GXX" = yes; then
39 +- CXXFLAGS="-O2"
40 ++ CXXFLAGS=""
41 + else
42 + CXXFLAGS=
43 + fi
44 +@@ -3553,8 +3553,8 @@
45 + my_CXXFLAGS="$my_CXXFLAGS -g -O0 -Wall -Wundef -Wno-ctor-dtor-privacy"
46 + my_CFLAGS="$my_CFLAGS -g -O0 -Wall -Wundef"
47 + else
48 +- my_CXXFLAGS="$my_CXXFLAGS -O2"
49 +- my_CFLAGS="$my_CFLAGS -O2"
50 ++ my_CXXFLAGS="$my_CXXFLAGS"
51 ++ my_CFLAGS="$my_CFLAGS"
52 + fi
53 + # User-supplied CXXFLAGS must always take precedence.
54 + # This still sucks because using `make CFLAGS=-foobar` kills
55 +@@ -3908,13 +3908,13 @@
56 + CFLAGS=$ac_save_CFLAGS
57 + elif test $ac_cv_prog_cc_g = yes; then
58 + if test "$GCC" = yes; then
59 +- CFLAGS="-g -O2"
60 ++ CFLAGS="-g"
61 + else
62 + CFLAGS="-g"
63 + fi
64 + else
65 + if test "$GCC" = yes; then
66 +- CFLAGS="-O2"
67 ++ CFLAGS=""
68 + else
69 + CFLAGS=
70 + fi
71 +@@ -4668,13 +4668,13 @@
72 + CFLAGS=$ac_save_CFLAGS
73 + elif test $ac_cv_prog_cc_g = yes; then
74 + if test "$GCC" = yes; then
75 +- CFLAGS="-g -O2"
76 ++ CFLAGS="-g"
77 + else
78 + CFLAGS="-g"
79 + fi
80 + else
81 + if test "$GCC" = yes; then
82 +- CFLAGS="-O2"
83 ++ CFLAGS=""
84 + else
85 + CFLAGS=
86 + fi

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut