fix compiler flag generation

Tue, 13 Aug 2019 22:14:32 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Tue, 13 Aug 2019 22:14:32 +0200
changeset 210
21274e5950af
parent 209
a6d8181a8127
child 211
2160585200ac
child 253
ddfead6ea863
child 362
e45f218628cd
child 385
a1f4cb076d2f

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 )

mercurial