diff options
author | marino <marino@FreeBSD.org> | 2013-10-08 00:15:34 +0000 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2013-10-08 00:15:34 +0000 |
commit | ad2e6d9cbccd260dd87a0b628896acf13b94a652 (patch) | |
tree | 39be84d6997d264d9ca2a8ab4f521d044421e824 | |
parent | 2cdc7a8011d68e815fb70ceef695ab41675a6ca2 (diff) | |
download | FreeBSD-ports-ad2e6d9cbccd260dd87a0b628896acf13b94a652.zip FreeBSD-ports-ad2e6d9cbccd260dd87a0b628896acf13b94a652.tar.gz |
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
-rw-r--r-- | games/battalion/Makefile | 2 | ||||
-rw-r--r-- | games/deng/Makefile | 1 | ||||
-rw-r--r-- | games/heroes/Makefile | 2 | ||||
-rw-r--r-- | games/uhexen/Makefile | 1 | ||||
-rw-r--r-- | sysutils/wmfire/Makefile | 2 | ||||
-rw-r--r-- | textproc/dixit/Makefile | 1 | ||||
-rw-r--r-- | x11-fm/tdfsb/Makefile | 2 | ||||
-rw-r--r-- | x11-wm/pawm/Makefile | 1 | ||||
-rw-r--r-- | x11/gromit/Makefile | 1 | ||||
-rw-r--r-- | x11/xsel/Makefile | 2 |
10 files changed, 10 insertions, 5 deletions
diff --git a/games/battalion/Makefile b/games/battalion/Makefile index 790133c..077177d 100644 --- a/games/battalion/Makefile +++ b/games/battalion/Makefile @@ -18,7 +18,7 @@ MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LIBS="${LDFLAGS}" CFLAGS+= -I${LOCALBASE}/include/X11 -I${LOCALBASE}/include \ -DLINUXVERSION -DLINUXAUDIO -LDFLAGS= -L${LOCALBASE}/lib +LDFLAGS= -L${LOCALBASE}/lib -lX11 -lm MAN6= battalion.6 diff --git a/games/deng/Makefile b/games/deng/Makefile index 9bf6abf..a2dedbe 100644 --- a/games/deng/Makefile +++ b/games/deng/Makefile @@ -25,6 +25,7 @@ USES= cmake:outsource CMAKE_SOURCE_PATH= ${WRKSRC}/doomsday CFLAGS+= -I${LOCALBASE}/include/libpng15 CMAKE_ARGS+= -DCMAKE_EXE_LINKER_FLAGS:STRING="-Wl,--export-dynamic" +LDFLAGS+= -lm MAN6= doomsday.6 diff --git a/games/heroes/Makefile b/games/heroes/Makefile index 30d1001..9a00294 100644 --- a/games/heroes/Makefile +++ b/games/heroes/Makefile @@ -47,7 +47,7 @@ MAN6= heroes.6 heroeslvl.6 INFO= heroes CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} -LDFLAGS+= -L${LOCALBASE}/lib -lsmpeg ${PTHREAD_LIBS} +LDFLAGS+= -L${LOCALBASE}/lib -lsmpeg -lm ${PTHREAD_LIBS} NO_STAGE= yes pre-everything:: diff --git a/games/uhexen/Makefile b/games/uhexen/Makefile index c6b93ea..6cb3c98 100644 --- a/games/uhexen/Makefile +++ b/games/uhexen/Makefile @@ -12,6 +12,7 @@ COMMENT= Yet another port of Hexen, popular game from Raven Software USE_GMAKE= yes USE_SDL= mixer sdl +MAKE_ENV+= EXTRA_LIBS=-lm OPTIONS_DEFINE= MUSIC OPTIONS_DEFAULT= MUSIC diff --git a/sysutils/wmfire/Makefile b/sysutils/wmfire/Makefile index 2c1401e..13c5bf4 100644 --- a/sysutils/wmfire/Makefile +++ b/sysutils/wmfire/Makefile @@ -17,7 +17,7 @@ USE_GNOME= gtk20 GNU_CONFIGURE= yes USE_CSTD= gnu89 CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib +LDFLAGS+= -L${LOCALBASE}/lib -lm MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOHEADER="${TRUE}" \ AUTOMAKE="${TRUE}" diff --git a/textproc/dixit/Makefile b/textproc/dixit/Makefile index 47751f9..e5c73c2 100644 --- a/textproc/dixit/Makefile +++ b/textproc/dixit/Makefile @@ -22,6 +22,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}.${QT_VER} USE_QT4= corelib gui network moc_build qmake_build rcc_build HAS_CONFIGURE= yes +QMAKEFLAGS= QMAKE_LFLAGS="-lz" PLIST_SUB= _DB=${_DB} DB_DIR=${DB_DIR} _DB_F=${_DB_F} diff --git a/x11-fm/tdfsb/Makefile b/x11-fm/tdfsb/Makefile index 0cde822..32e3435 100644 --- a/x11-fm/tdfsb/Makefile +++ b/x11-fm/tdfsb/Makefile @@ -27,7 +27,7 @@ CPPFLAGS+= `${LOCALBASE}/bin/pkgconf --cflags SDL_image gl` \ -I ${LOCALBASE}/include LDFLAGS+= `${LOCALBASE}/bin/pkgconf --libs SDL_image gl` \ `${LOCALBASE}/bin/smpeg-config --libs` \ - -L ${LOCALBASE}/lib -lGLU -lglut + -L ${LOCALBASE}/lib -lGLU -lglut -lm NO_STAGE= yes .include <bsd.port.pre.mk> diff --git a/x11-wm/pawm/Makefile b/x11-wm/pawm/Makefile index 57071fe..677811d 100644 --- a/x11-wm/pawm/Makefile +++ b/x11-wm/pawm/Makefile @@ -14,6 +14,7 @@ USE_XORG= x11 xft xrandr xrender xpm USES= cmake pkgconfig CMAKE_ARGS= -DCMAKE_CONFIG_PREFIX:STRING="${PREFIX}/etc" \ -DX11_LIBRARY_DIRS:STRING="${LOCALBASE}/lib" +LDFLAGS+= -L${LOCALBASE}/lib -lXext -lXrender .if defined(WITH_SN) LIB_DEPENDS+= startup-notification-1.0:${PORTSDIR}/x11/startup-notification diff --git a/x11/gromit/Makefile b/x11/gromit/Makefile index 26026ee..91dd0a8d 100644 --- a/x11/gromit/Makefile +++ b/x11/gromit/Makefile @@ -12,6 +12,7 @@ COMMENT= GRaphics Over Miscellaneous Objects (Gromit) USE_GNOME= gtk20 USES= pkgconfig +CFLAGS+= -lm DOCS= AUTHORS ChangeLog README diff --git a/x11/xsel/Makefile b/x11/xsel/Makefile index c97cccc..fc0d833 100644 --- a/x11/xsel/Makefile +++ b/x11/xsel/Makefile @@ -15,7 +15,7 @@ CONFLICTS= xsel-conrad-[0-9]* USE_BZIP2= yes USE_XORG= xmu xaw xt xproto xkbfile CFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -lXt -lXaw +LDFLAGS+= -L${LOCALBASE}/lib -lXt -lXaw -lX11 -lXmu MAN1= ${PORTNAME}.1 PLIST_FILES= bin/${PORTNAME} PORTDOCS= ${PORTNAME}.html |