623de7
--- lp_solve_5.5/lpsolve55/ccc	2018-02-26 09:27:51.074682302 +0000
623de7
+++ lp_solve_5.5/lpsolve55/ccc	2018-02-26 09:36:36.329990782 +0000
623de7
@@ -35,16 +35,14 @@
623de7
      so=y
623de7
 fi
623de7
 
623de7
-opts='-O3'
623de7
-
623de7
-$c -s -c -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd $opts $def $NOISNAN -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src
623de7
+$c $CFLAGS -fPIC -c -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd $def $NOISNAN -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src
623de7
 ar rv bin/$PLATFORM/liblpsolve55.a `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'`
623de7
 ranlib bin/$PLATFORM/liblpsolve55.a
623de7
 
623de7
 if [ "$so" != "" ]
623de7
 then
623de7
-  $c -fpic -s -c -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd -I. $opts $NOISNAN -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src
623de7
-  $c -shared -Wl,-Bsymbolic -Wl,-soname,liblpsolve55.so -o bin/$PLATFORM/liblpsolve55.so `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'` -lc -lm -ldl
623de7
+  $c $CFLAGS -fPIC -c -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd -I. $NOISNAN -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src
623de7
+  $c $LDFLAGS -shared -Wl,-Bsymbolic -Wl,-soname,liblpsolve55.so -o bin/$PLATFORM/liblpsolve55.so `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'` -lc -lm -ldl
623de7
 fi
623de7
 
623de7
 rm *.o 2>/dev/null
623de7
--- lp_solve_5.5/lp_solve/ccc	2018-02-26 14:32:54.304981484 +0000
623de7
+++ lp_solve_5.5/lp_solve/ccc	2018-02-26 14:34:03.524750992 +0000
623de7
@@ -28,8 +28,6 @@
623de7
 fi
623de7
 rm /tmp/isnan.c /tmp/isnan >/dev/null 2>&1
623de7
 
623de7
-opts='-O3'
623de7
-
623de7
 def=
623de7
 if [ "$PLATFORM" = "SCO_UNIX" ]
623de7
 then opts='-O0'
623de7
@@ -38,4 +36,4 @@
623de7
 else dl=-ldl
623de7
 fi
623de7
 
623de7
-$c -I.. -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd -I../shared $opts $def $NOISNAN -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src -o bin/$PLATFORM/lp_solve $math $dl
623de7
+$c $CFLAGS $LDFLAGS -I.. -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd -I../shared $def $NOISNAN -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine $src -o bin/$PLATFORM/lp_solve $math $dl