diff options
author | R. S. Ananda Murthy <rsamurti@gmail.com> | 2014-10-07 07:39:09 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-10-11 00:14:13 +0700 |
commit | 8894f7f91bb6a1aa61bd21e8c82d68b94baca1b4 (patch) | |
tree | 4fd9aa28621e8e463035bd98d1324c27c8891264 /academic/lpsolve/cflags.patch | |
parent | a654d0f07aa0f119364af10c8e04fe21c75258cb (diff) |
academic/lpsolve: Added (linear pogramming solver).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'academic/lpsolve/cflags.patch')
-rw-r--r-- | academic/lpsolve/cflags.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/academic/lpsolve/cflags.patch b/academic/lpsolve/cflags.patch new file mode 100644 index 0000000000000..8e8804cb8c4fb --- /dev/null +++ b/academic/lpsolve/cflags.patch @@ -0,0 +1,25 @@ +diff -ru lp_solve_5.5.orig/lp_solve/ccc lp_solve_5.5/lp_solve/ccc +--- lp_solve_5.5.orig/lp_solve/ccc 2009-02-23 16:31:18.000000000 +0000 ++++ lp_solve_5.5/lp_solve/ccc 2009-02-23 16:31:29.000000000 +0000 +@@ -28,7 +28,7 @@ + fi + rm /tmp/isnan.c /tmp/isnan >/dev/null 2>&1 + +-opts='-O3' ++opts=$CFLAGS + + def= + if [ "$PLATFORM" = "SCO_UNIX" ] +diff -ru lp_solve_5.5.orig/lpsolve55/ccc lp_solve_5.5/lpsolve55/ccc +--- lp_solve_5.5.orig/lpsolve55/ccc 2009-02-23 16:31:18.000000000 +0000 ++++ lp_solve_5.5/lpsolve55/ccc 2009-02-23 16:31:29.000000000 +0000 +@@ -35,7 +35,7 @@ + so=y + fi + +-opts='-O3' ++opts=$CFLAGS + + $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 + ar rv bin/$PLATFORM/liblpsolve55.a `echo $src|sed s/[.]c/.o/g|sed 's/[^ ]*\///g'` + |