From 680c587ef2151dfff2e7b2858411604623ad1c9d Mon Sep 17 00:00:00 2001 From: marino Date: Mon, 7 Oct 2013 23:03:12 +0000 Subject: Explicitly link libraries on 10 unmaintained ports The following ports will not build with a binutils 2.22+ linker built with standard options. This has been obvious with DPorts, but difficult to see on FreeBSD. However, setting the ports compiler as a recent gcc (e.g lang/gcc48) is an excellent way to detect the unspecified but needed libraries as these recent GCC compilers use the latest binutils linkers. These patches were tested on FreeBSD 8.4 and DragonFly 3.5 --- audio/tagtool/Makefile | 2 +- audio/xmixer/Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'audio') diff --git a/audio/tagtool/Makefile b/audio/tagtool/Makefile index 109bef29cfb..694e6d49f47 100644 --- a/audio/tagtool/Makefile +++ b/audio/tagtool/Makefile @@ -22,7 +22,7 @@ GNU_CONFIGURE= yes INSTALLS_ICONS= yes CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} -LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -logg +LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -logg -lm post-patch: @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ diff --git a/audio/xmixer/Makefile b/audio/xmixer/Makefile index 7bc0a648b31..5147c792308 100644 --- a/audio/xmixer/Makefile +++ b/audio/xmixer/Makefile @@ -30,6 +30,7 @@ PLIST_FILES+= bin/xgmixer .else USE_XORG= x11 xt ice xaw PROGRAMS= xmixer +LDFLAGS+= -L${LOCALBASE}/lib -lX11 .endif post-patch: -- cgit