aboutsummaryrefslogtreecommitdiff
path: root/math/frobby/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/frobby/files/patch-Makefile')
-rw-r--r--math/frobby/files/patch-Makefile25
1 files changed, 17 insertions, 8 deletions
diff --git a/math/frobby/files/patch-Makefile b/math/frobby/files/patch-Makefile
index 7d8bde6305e4..4555919f51e9 100644
--- a/math/frobby/files/patch-Makefile
+++ b/math/frobby/files/patch-Makefile
@@ -1,26 +1,35 @@
---- Makefile.orig 2011-09-23 20:09:12 UTC
+--- Makefile.orig 2020-06-16 11:03:34 UTC
+++ Makefile
-@@ -87,7 +87,6 @@ endif
+@@ -86,7 +86,6 @@ endif
MATCH=false
ifeq ($(MODE), release)
outdir = bin/release/
-- cflags += -O2
+- cxxflags += -O2
MATCH=true
endif
ifeq ($(MODE), debug)
-@@ -99,13 +98,13 @@ ifeq ($(MODE), debug)
+@@ -98,13 +97,13 @@ ifeq ($(MODE), debug)
endif
ifeq ($(MODE), shared)
outdir = bin/shared/
-- cflags += -O2 -fPIC
-+ cflags += -fPIC
+- cxxflags += -O2 -fPIC
++ cxxflags += -fPIC
library = libfrobby.so
MATCH=true
endif
ifeq ($(MODE), profile)
outdir = bin/profile/
-- cflags += -g -pg -O2 -D PROFILE
-+ cflags += -g -pg -D PROFILE
+- cxxflags += -g -pg -O2 -D PROFILE
++ cxxflags += -g -pg -D PROFILE
ldflags += -pg
MATCH=true
benchArgs = _profile $(FROBBYARGS)
+@@ -212,7 +211,7 @@ library: bin/$(library)
+ bin/$(library): $(objs) | bin/
+ rm -f bin/$(library)
+ ifeq ($(MODE), shared)
+- $(CXX) -shared -o bin/$(library) $(ldflags) \
++ $(CXX) -shared -Wl,-soname,$(library) -o bin/$(library) $(ldflags) \
+ $(patsubst $(outdir)main.o,,$(objs))
+ else
+ ar crs bin/$(library) $(patsubst $(outdir)main.o,,$(objs))