summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorMarkus Brueffer <markus@FreeBSD.org>2004-08-13 23:38:44 +0000
committerMarkus Brueffer <markus@FreeBSD.org>2004-08-13 23:38:44 +0000
commit820e0a1724a5f26200b3032569b814c86bd095a3 (patch)
treef3f3ec1fcabe8df9d2ebd0c1f3eccee3d35d074d /math
parentFix build with gcc 3.4 (diff)
- Fix build with gcc 3.4 [1]
- Fix build on amd64 Reported by: pointyhat via kris [1]
Notes
Notes: svn path=/head/; revision=116161
Diffstat (limited to 'math')
-rw-r--r--math/fung-calc/Makefile2
-rw-r--r--math/fung-calc/files/patch-src-libfungcalc-fparser-fparser.cc29
2 files changed, 30 insertions, 1 deletions
diff --git a/math/fung-calc/Makefile b/math/fung-calc/Makefile
index f15a24799f80..4f53e7f0f433 100644
--- a/math/fung-calc/Makefile
+++ b/math/fung-calc/Makefile
@@ -24,7 +24,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
pre-configure:
- @${REINPLACE_CMD} -e 's|-O2||g; s|-lpthread|${PTHREAD_LIBS}|g' \
+ @${REINPLACE_CMD} -e 's|-O2|-fPIC|g; s|-lpthread|${PTHREAD_LIBS}|g' \
${WRKSRC}/configure
.include <bsd.port.mk>
diff --git a/math/fung-calc/files/patch-src-libfungcalc-fparser-fparser.cc b/math/fung-calc/files/patch-src-libfungcalc-fparser-fparser.cc
new file mode 100644
index 000000000000..5854efcfc219
--- /dev/null
+++ b/math/fung-calc/files/patch-src-libfungcalc-fparser-fparser.cc
@@ -0,0 +1,29 @@
+--- src/libfungcalc/fparser/fparser.cc.orig Sat Aug 14 00:53:10 2004
++++ src/libfungcalc/fparser/fparser.cc Sat Aug 14 00:54:04 2004
+@@ -163,7 +163,7 @@
+ }
+ return 0;
+ }
+-};
++}
+
+ //---------------------------------------------------------------------------
+ // Constructors and destructors
+@@ -236,7 +236,7 @@
+ }
+ return true;
+ }
+-};
++}
+
+ bool FunctionParser::isValidName(const std::string& name)
+ {
+@@ -361,7 +361,7 @@
+ {
+ while(F[Ind] && F[Ind] == ' ') ++Ind;
+ }
+-};
++}
+
+ // Returns an iterator to the variable with the same name as 'F', or to
+ // Variables.end() if no such variable exists: