Gentoo Archives: gentoo-commits

From: "Thomas Kahle (tomka)" <tomka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/frobby/files: frobby-cflags-no-strip-soname.patch frobby-cflags-no-strip.patch
Date: Mon, 30 Jul 2012 12:28:40
Message-Id: 20120730122816.61AAF2004B@flycatcher.gentoo.org
1 tomka 12/07/30 12:28:16
2
3 Added: frobby-cflags-no-strip-soname.patch
4 Removed: frobby-cflags-no-strip.patch
5 Log:
6 Fix library mess
7
8 (Portage version: 2.1.11.9/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 sci-mathematics/frobby/files/frobby-cflags-no-strip-soname.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/frobby/files/frobby-cflags-no-strip-soname.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/frobby/files/frobby-cflags-no-strip-soname.patch?rev=1.1&content-type=text/plain
15
16 Index: frobby-cflags-no-strip-soname.patch
17 ===================================================================
18 diff -U 3 -dHrN frobby_v0.9.0-orig/Makefile frobby_v0.9.0/Makefile
19 --- frobby_v0.9.0-orig/Makefile 2012-07-30 14:19:58.161584356 +0200
20 +++ frobby_v0.9.0/Makefile 2012-07-30 14:21:36.796558990 +0200
21 @@ -87,7 +87,6 @@
22 MATCH=false
23 ifeq ($(MODE), release)
24 outdir = bin/release/
25 - cflags += -O2
26 MATCH=true
27 endif
28 ifeq ($(MODE), debug)
29 @@ -204,16 +203,13 @@
30 mv -f $@.exe $@; \
31 fi
32 endif
33 -ifeq ($(MODE), release)
34 - strip $@
35 -endif
36
37 # Link object files into library
38 library: bin/$(library)
39 bin/$(library): $(objs) | bin/
40 rm -f bin/$(library)
41 ifeq ($(MODE), shared)
42 - $(CXX) -shared -o bin/$(library) $(ldflags) \
43 + $(CXX) -shared -Wl,-soname,libfrobby.so.0 -o bin/$(library) $(ldflags) \
44 $(patsubst $(outdir)main.o,,$(objs))
45 else
46 ar crs bin/$(library) $(patsubst $(outdir)main.o,,$(objs))