Tue, 13 Aug 2019 22:14:32 +0200
fix compiler flag generation
configure | file | annotate | diff | comparison | revisions | |
make/configure.vm | file | annotate | diff | comparison | revisions |
--- a/configure Tue Aug 13 22:03:19 2019 +0200 +++ b/configure Tue Aug 13 22:14:32 2019 +0200 @@ -330,8 +330,8 @@ while true do - CFLAGS="CFLAGS -DLINUX" - LDFLAGS="LDFLAGS -lpthread -ldl -lm -lldap" + CFLAGS="$CFLAGS -DLINUX" + LDFLAGS="$LDFLAGS -lpthread -ldl -lm -lldap" cat >> $TEMP_DIR/make.mk << __EOF__ # platform dependend source files PLATFORM_DAEMONOBJ = event_linux.o @@ -359,8 +359,8 @@ while true do - CFLAGS="CFLAGS -DBSD" - LDFLAGS="LDFLAGS -lpthread -lm -lldap" + CFLAGS="$CFLAGS -DBSD" + LDFLAGS="$LDFLAGS -lpthread -lm -lldap" cat >> $TEMP_DIR/make.mk << __EOF__ # platform dependend source files PLATFORM_DAEMONOBJ = event_bsd.o @@ -385,8 +385,8 @@ while true do - CFLAGS="CFLAGS -DBSD -DOSX" - LDFLAGS="LDFLAGS -lpthread -ldl -lm -lldap" + CFLAGS="$CFLAGS -DBSD -DOSX" + LDFLAGS="$LDFLAGS -lpthread -ldl -lm -lldap" cat >> $TEMP_DIR/make.mk << __EOF__ # platform dependend source files PLATFORM_DAEMONOBJ = event_bsd.o @@ -411,8 +411,8 @@ while true do - CFLAGS="CFLAGS -DSOLARIS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" - LDFLAGS="LDFLAGS -lsocket -lnsl -lsendfile -lposix4 -lpthread -ldl -lm -lmd -lldap" + CFLAGS="$CFLAGS -DSOLARIS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS" + LDFLAGS="$LDFLAGS -lsocket -lnsl -lsendfile -lposix4 -lpthread -ldl -lm -lmd -lldap" cat >> $TEMP_DIR/make.mk << __EOF__ # platform dependend source files PLATFORM_DAEMONOBJ = event_solaris.o
--- a/make/configure.vm Tue Aug 13 22:03:19 2019 +0200 +++ b/make/configure.vm Tue Aug 13 22:14:32 2019 +0200 @@ -370,12 +370,12 @@ #if( $flags.exec ) $flags.value > /dev/null if [ $? -eq 0 ]; then - $flags.varName="$flags.varName `$flags.value`" + $flags.varName="$$flags.varName `$flags.value`" else break fi #else - $flags.varName="$flags.varName $flags.value" + $flags.varName="$$flags.varName $flags.value" #end #end #foreach( $test in $sub.tests ) @@ -444,13 +444,13 @@ #if( $flags.exec ) $flags.value > /dev/null if [ $? -ne 0 ]; then - $flags.varName="$flags.varName `$flags.value`" + $flags.varName="$$flags.varName `$flags.value`" else ERROR=1 break fi #else - $flags.varName="$flags.varName $flags.value" + $flags.varName="$$flags.varName $flags.value" #end #end #if ( $dependency.make.length() > 0 )