From 480a2836a2e1245db82e0a5ba71cb0b7865c5b3b Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Mon, 8 Aug 2016 21:20:17 +0000
Subject: Haiku patch


diff --git a/lp_solve/ccc b/lp_solve/ccc
index 35b89fb..944f1ed 100644
--- a/lp_solve/ccc
+++ b/lp_solve/ccc
@@ -13,7 +13,7 @@ rm /tmp/platform /tmp/platform.c >/dev/null 2>&1
 
 mkdir bin bin/$PLATFORM >/dev/null 2>&1
 
-math=-lm
+math=
 
 #check if this system has the isnan function
 >/tmp/isnan.c
@@ -35,7 +35,7 @@ if [ "$PLATFORM" = "SCO_UNIX" ]
 then opts='-O0'
      def='-dy -K PIC -DLLONG=long'
      dl=-ldl
-else dl=-ldl
+else dl=
 fi
 
 $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
diff --git a/lpsolve55/ccc b/lpsolve55/ccc
index 4afb1bf..08c9ef8 100644
--- a/lpsolve55/ccc
+++ b/lpsolve55/ccc
@@ -44,7 +44,7 @@ ranlib bin/$PLATFORM/liblpsolve55.a
 if [ "$so" != "" ]
 then
   $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
-  $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
+  $c -shared -Wl,-Bsymbolic -Wl,-soname,liblpsolve55.so -o bin/$PLATFORM/liblpsolve55.so `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'`
 fi
 
 rm *.o 2>/dev/null
-- 
2.2.2

