diff options
| author | Roy Marples <roy@marples.name> | 2013-11-10 11:17:40 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2013-11-10 11:17:40 +0000 |
| commit | 2e9244794f3def04bd8421f35dd09498636bb6a3 (patch) | |
| tree | b29c5a8adbfdd79032fe09aa3abc63146c9e4762 /configure | |
| parent | 587b9b7f7407a93f72bb027089ca7de16a5147e8 (diff) | |
| download | dhcpcd-2e9244794f3def04bd8421f35dd09498636bb6a3.tar.xz | |
Set blank CFLAGS/CPPFLAGS and then append user CFLAGS/CPPFLAGS.
This allows us to pass them to the configure tests and keep our
sed to extract them portable.
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -265,15 +265,21 @@ fi $CC --version | $SED -e '1!d' echo "CC= $CC" >>$CONFIG_MK +# Set to blank, then append user config +# We do this so our SED call to append to XCC remains portable +echo "CFLAGS=" >>$CONFIG_MK +echo "CPPFLAGS=" >>$CONFIG_MK +echo "LDFLAGS=" >>$CONFIG_MK if [ -n "$CFLAGS" ]; then - echo "CFLAGS= $CFLAGS" >>$CONFIG_MK + echo "CFLAGS+= $CFLAGS" >>$CONFIG_MK fi if [ -n "$CPPFLAGS" ]; then - echo "CPPFLAGS= $CPPFLAGS" >>$CONFIG_MK + echo "CPPFLAGS+= $CPPFLAGS" >>$CONFIG_MK fi if [ -n "$LDFLAGS" ]; then - echo "LDFLAGS= $LDFLAGS" >>$CONFIG_MK + echo "LDFLAGS+= $LDFLAGS" >>$CONFIG_MK fi + if [ "$STATIC" = yes ]; then echo "LDFLAGS+= -static" >>$CONFIG_MK fi |
