diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-11-02 16:58:14 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-11-02 16:58:14 -0500 |
commit | 4cd8b4725907651f329e2f96d428c4e3521643f8 (patch) | |
tree | 71bb22474472eb7dccfc0399be08fd52eccdff6e /configure | |
parent | fda365a53074f97f3213caefe70ea13297acecb2 (diff) | |
download | musl-4cd8b4725907651f329e2f96d428c4e3521643f8.tar.gz musl-4cd8b4725907651f329e2f96d428c4e3521643f8.tar.xz musl-4cd8b4725907651f329e2f96d428c4e3521643f8.zip |
keep user-provided CFLAGS/LDFLAGS separate from those added by configure
this way, overriding these variables on the make command line (or just re-passing the originally-passed values when invoking make) won't suppress use of the flags added by configure.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure b/configure index 742ca261..3e536f53 100755 --- a/configure +++ b/configure @@ -629,12 +629,14 @@ libdir = $libdir includedir = $includedir syslibdir = $syslibdir CC = $CC -CFLAGS = $CFLAGS_AUTO $CFLAGS +CFLAGS = $CFLAGS +CFLAGS_AUTO = $CFLAGS_AUTO CFLAGS_C99FSE = $CFLAGS_C99FSE CFLAGS_MEMOPS = $CFLAGS_MEMOPS CFLAGS_NOSSP = $CFLAGS_NOSSP CPPFLAGS = $CPPFLAGS -LDFLAGS = $LDFLAGS_AUTO $LDFLAGS +LDFLAGS = $LDFLAGS +LDFLAGS_AUTO = $LDFLAGS_AUTO CROSS_COMPILE = $CROSS_COMPILE LIBCC = $LIBCC OPTIMIZE_GLOBS = $OPTIMIZE_GLOBS |