Fix aalib-config for overlinking with shared libs.

ok sthen@
This commit is contained in:
brad 2013-04-15 02:06:15 +00:00
parent 62401cceca
commit 28aa014e9a
2 changed files with 17 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.41 2013/03/21 08:45:17 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.42 2013/04/15 02:06:15 brad Exp $
COMMENT= ascii art library
DISTNAME= aalib-1.4rc5
PKGNAME= aalib-1.4
REVISION = 4
REVISION= 5
SHARED_LIBS= aa 2.0
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=aa-project/}

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-aalib-config_in,v 1.1 2013/04/15 02:06:16 brad Exp $
Fix overlinking for shared libs.
--- aalib-config.in.orig Thu Apr 11 17:20:16 2013
+++ aalib-config.in Thu Apr 11 17:22:14 2013
@@ -49,7 +49,7 @@ while test $# -gt 0; do
;;
@ENABLE_SHARED_TRUE@ --libs)
@ENABLE_SHARED_TRUE@ libdirs="-L@libdir@ @AALIB_RLD_FLAGS@"
-@ENABLE_SHARED_TRUE@ echo $libdirs @AALIB_LIBS@
+@ENABLE_SHARED_TRUE@ echo $libdirs -laa
@ENABLE_SHARED_TRUE@ ;;
@ENABLE_STATIC_TRUE@@ENABLE_SHARED_TRUE@ --static-libs)
@ENABLE_STATIC_TRUE@@ENABLE_SHARED_FALSE@ --libs|--static-libs)