diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-mathematics/frobby/files/frobby-cflags-no-strip-soname.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-mathematics/frobby/files/frobby-cflags-no-strip-soname.patch')
-rw-r--r-- | sci-mathematics/frobby/files/frobby-cflags-no-strip-soname.patch | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sci-mathematics/frobby/files/frobby-cflags-no-strip-soname.patch b/sci-mathematics/frobby/files/frobby-cflags-no-strip-soname.patch new file mode 100644 index 000000000000..2f5721d62a71 --- /dev/null +++ b/sci-mathematics/frobby/files/frobby-cflags-no-strip-soname.patch @@ -0,0 +1,47 @@ +diff -U 3 -dHrN frobby_v0.9.0.orig/Makefile frobby_v0.9.0/Makefile +--- frobby_v0.9.0.orig/Makefile 2013-01-15 22:40:13.127937655 +0100 ++++ frobby_v0.9.0/Makefile 2013-02-16 10:54:42.265322522 +0100 +@@ -70,7 +70,7 @@ + BIN_INSTALL_DIR = "/usr/local/bin/" + endif + +-cflags = $(CFLAGS) $(CPPFLAGS) -Wall -ansi -pedantic -I $(GMP_INC_DIR) \ ++cflags = $(CPPFLAGS) -Wall -ansi -pedantic -I $(GMP_INC_DIR) \ + -Wno-uninitialized -Wno-unused-parameter + program = frobby + library = libfrobby.a +@@ -87,7 +87,6 @@ + MATCH=false + ifeq ($(MODE), release) + outdir = bin/release/ +- cflags += -O2 + MATCH=true + endif + ifeq ($(MODE), debug) +@@ -99,7 +98,7 @@ + endif + ifeq ($(MODE), shared) + outdir = bin/shared/ +- cflags += -O2 -fPIC ++ cflags += -fPIC + library = libfrobby.so + MATCH=true + endif +@@ -204,16 +203,13 @@ + mv -f $@.exe $@; \ + fi + endif +-ifeq ($(MODE), release) +- strip $@ +-endif + + # Link object files into library + library: bin/$(library) + bin/$(library): $(objs) | bin/ + rm -f bin/$(library) + ifeq ($(MODE), shared) +- $(CXX) -shared -o bin/$(library) $(ldflags) \ ++ $(CXX) -shared -Wl,-soname,libfrobby.so.0 -o bin/$(library) $(ldflags) \ + $(patsubst $(outdir)main.o,,$(objs)) + else + ar crs bin/$(library) $(patsubst $(outdir)main.o,,$(objs)) |