Use libdl when linking npplayer
Without it, following error occurs on Fedora 15 when compiling for x86_64: /usr/bin/ld: npplayer-npw-player.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5' /usr/bin/ld: note: 'dlsym@@GLIBC_2.2.5' is defined in DSO /lib64/libdl.so.2 so try adding it to the linker command line /lib64/libdl.so.2: could not read symbols: Invalid operation collect2: ld returned 1 exit status Fedora already has a patch that adds -ldl to LDFLAGS Signed-off-by: Pavel Roskin <proski@gnu.org>
This commit is contained in:
parent
a9e1623e44
commit
6bd99e4da8
2
Makefile
2
Makefile
|
@ -142,7 +142,7 @@ npplayer_CFLAGS += $(GTK_CFLAGS) $(GLIB_CFLAGS) $(MOZILLA_CFLAGS) $(CURL_CFLAGS
|
|||
npplayer_LDFLAGS = $(LDFLAGS)
|
||||
npplayer_LDFLAGS += $(libpthread_LDFLAGS)
|
||||
npplayer_LIBS = $(GTK_LIBS) $(GLIB_LIBS) $(CURL_LIBS) $(X_LIBS)
|
||||
npplayer_LIBS += $(libpthread_LIBS) $(libsocket_LIBS)
|
||||
npplayer_LIBS += $(libdl_LIBS) $(libpthread_LIBS) $(libsocket_LIBS)
|
||||
|
||||
libnoxshm_LIBRARY = libnoxshm.so
|
||||
libnoxshm_RAWSRCS = libnoxshm.c
|
||||
|
|
Loading…
Reference in New Issue