* [gentoo-commits] gentoo-x86 commit in games-puzzle/picpuz/files: picpuz-2.5-pthread-underlinking.patch
@ 2014-03-02 19:27 Sergei Trofimovich (slyfox)
0 siblings, 0 replies; only message in thread
From: Sergei Trofimovich (slyfox) @ 2014-03-02 19:27 UTC (permalink / raw
To: gentoo-commits
slyfox 14/03/02 19:27:15
Added: picpuz-2.5-pthread-underlinking.patch
Log:
Fix pthread underlinking.
(Portage version: 2.2.8_p53/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)
Revision Changes Path
1.1 games-puzzle/picpuz/files/picpuz-2.5-pthread-underlinking.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-puzzle/picpuz/files/picpuz-2.5-pthread-underlinking.patch?rev=1.1&view=markup
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
Index: picpuz-2.5-pthread-underlinking.patch
===================================================================
Fix underlinking on recent binutils:
> 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
> /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'
> /lib64/libpthread.so.0: error adding symbols: DSO missing from command line
diff --git a/Makefile b/Makefile
index 28638de..700b610 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ MANDIR = $(PREFIX)/share/man/man1
MENUFILE = $(PREFIX)/share/applications/kornelix-$(PROGRAM).desktop
CXXFLAGS += -c `pkg-config --cflags gtk+-3.0`
-LIBS = `pkg-config --libs gtk+-3.0`
+LIBS = -pthread `pkg-config --libs gtk+-3.0`
$(PROGRAM): $(PROGRAM).o zfuncs.o
$(CXX) $(LDFLAGS) $(PROGRAM).o zfuncs.o $(LIBS) -o $(PROGRAM)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-02 19:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-02 19:27 [gentoo-commits] gentoo-x86 commit in games-puzzle/picpuz/files: picpuz-2.5-pthread-underlinking.patch Sergei Trofimovich (slyfox)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox