From: | "Sergei Trofimovich (slyfox)" <slyfox@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in games-puzzle/picpuz/files: picpuz-2.5-pthread-underlinking.patch |
Date: | Sun, 02 Mar 2014 19:27:22 |
Message-Id: | 20140302192715.BA7142004E@flycatcher.gentoo.org |
1 | slyfox 14/03/02 19:27:15 |
2 | |
3 | Added: picpuz-2.5-pthread-underlinking.patch |
4 | Log: |
5 | Fix pthread underlinking. |
6 | |
7 | (Portage version: 2.2.8_p53/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA) |
8 | |
9 | Revision Changes Path |
10 | 1.1 games-puzzle/picpuz/files/picpuz-2.5-pthread-underlinking.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/picpuz/files/picpuz-2.5-pthread-underlinking.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/picpuz/files/picpuz-2.5-pthread-underlinking.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: picpuz-2.5-pthread-underlinking.patch |
16 | =================================================================== |
17 | Fix underlinking on recent binutils: |
18 | |
19 | > x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu picpuz.o zfuncs.o `pkg-config --libs gtk+-3.0` -o picpuz |
20 | > /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: zfuncs.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5' |
21 | > /lib64/libpthread.so.0: error adding symbols: DSO missing from command line |
22 | diff --git a/Makefile b/Makefile |
23 | index 28638de..700b610 100644 |
24 | --- a/Makefile |
25 | +++ b/Makefile |
26 | @@ -19,7 +19,7 @@ MANDIR = $(PREFIX)/share/man/man1 |
27 | MENUFILE = $(PREFIX)/share/applications/kornelix-$(PROGRAM).desktop |
28 | |
29 | CXXFLAGS += -c `pkg-config --cflags gtk+-3.0` |
30 | -LIBS = `pkg-config --libs gtk+-3.0` |
31 | +LIBS = -pthread `pkg-config --libs gtk+-3.0` |
32 | |
33 | $(PROGRAM): $(PROGRAM).o zfuncs.o |
34 | $(CXX) $(LDFLAGS) $(PROGRAM).o zfuncs.o $(LIBS) -o $(PROGRAM) |