archrelease: copy trunk to extra-x86_64
[arch-packages.git] / lpsolve / trunk / flags.patch
blob16b10820fe4dbdd129849c5a86ceccb35289aa05
1 diff -ru lp_solve_5.5.orig/lp_solve/ccc lp_solve_5.5/lp_solve/ccc
2 --- lp_solve_5.5.orig/lp_solve/ccc 2009-02-23 16:31:18.000000000 +0000
3 +++ lp_solve_5.5/lp_solve/ccc 2009-02-23 16:31:29.000000000 +0000
4 @@ -28,7 +28,7 @@
5 fi
6 rm /tmp/isnan.c /tmp/isnan >/dev/null 2>&1
8 -opts='-O3'
9 +opts=$CFLAGS
11 def=
12 if [ "$PLATFORM" = "SCO_UNIX" ]
13 --- lp_solve_5.5/lp_solve/ccc 2021-05-16 11:21:48.000000000 +0200
14 +++ lp_solve_5.5/lp_solve/ccc.new 2021-05-16 11:24:49.707197134 +0200
15 @@ -42,4 +42,4 @@
16 else dl=-ldl
19 -$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
20 +$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 $LDFLAGS -o bin/$PLATFORM/lp_solve $math $dl
22 diff -ru lp_solve_5.5.orig/lpsolve55/ccc lp_solve_5.5/lpsolve55/ccc
23 --- lp_solve_5.5.orig/lpsolve55/ccc 2009-02-23 16:31:18.000000000 +0000
24 +++ lp_solve_5.5/lpsolve55/ccc 2009-02-23 16:31:29.000000000 +0000
25 @@ -35,7 +35,7 @@
26 so=y
29 -opts='-O3'
30 +opts=$CFLAGS
32 $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
33 ar rv bin/$PLATFORM/liblpsolve55.a `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'`
35 --- lp_solve_5.5/lpsolve55/ccc 2021-05-16 11:11:40.000000000 +0200
36 +++ lp_solve_5.5/lpsolve55/ccc.new 2021-05-16 11:19:13.556599115 +0200
37 @@ -48,7 +48,7 @@
38 if [ "$so" != "" ]
39 then
40 $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
41 - $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
42 + $c -shared -Wl,-Bsymbolic -Wl,-soname,liblpsolve55.so $LDFLAGS -o bin/$PLATFORM/liblpsolve55.so `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'` -lc -lm -ldl
45 rm *.o 2>/dev/null