1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

- Fixed linking againt -pthread and -lc_r

PR:		80307
Submitted by:	Alexander Timoshenko <alexander.timoshenko@gmail.com> (maintainer)
This commit is contained in:
Yen-Ming Lee 2005-04-25 17:52:27 +00:00
parent e7fed455a8
commit 40e6d8efc1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134157
4 changed files with 30 additions and 0 deletions

View File

@ -17,6 +17,8 @@ COMMENT= Jabber ICQ Transport
USE_GMAKE= yes
USE_REINPLACE= yes
HAS_CONFIGURE= yes
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
.include <bsd.port.pre.mk>

View File

@ -0,0 +1,13 @@
--- configure.orig Mon Apr 25 14:41:07 2005
+++ configure Mon Apr 25 14:42:05 2005
@@ -60,8 +60,8 @@
CFLAGS="$CFLAGS -I/usr/include -fPIC"
LIBS="$LIBS -ldl -lpthread";;
FreeBSD)
- CFLAGS="$CFLAGS -I/usr/local/include -I/usr/src/contrib/libstdc++ -D_THREAD_SAFE -DSUNOS"
- LIBS="$LIBS -pthread -lcompat -lc_r -L/usr/local/lib -liconv";;
+ CFLAGS="$CFLAGS -I/usr/local/include -I/usr/src/contrib/libstdc++ \${PTHREAD_CFLAGS} -DSUNOS"
+ LIBS="$LIBS \${PTHREAD_LIBS} -lcompat -L/usr/local/lib -liconv";;
OpenBSD)
CFLAGS="$CFLAGS -I/usr/local/include -I/usr/src/contrib/libstdc++ -D_THREAD_SAFE -DSUNOS"
LIBS="$LIBS -pthread -lcompat -lc_r -L/usr/local/lib -liconv";;

View File

@ -17,6 +17,8 @@ COMMENT= Jabber ICQ Transport
USE_GMAKE= yes
USE_REINPLACE= yes
HAS_CONFIGURE= yes
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
.include <bsd.port.pre.mk>

View File

@ -0,0 +1,13 @@
--- configure.orig Mon Apr 25 14:41:07 2005
+++ configure Mon Apr 25 14:42:05 2005
@@ -60,8 +60,8 @@
CFLAGS="$CFLAGS -I/usr/include -fPIC"
LIBS="$LIBS -ldl -lpthread";;
FreeBSD)
- CFLAGS="$CFLAGS -I/usr/local/include -I/usr/src/contrib/libstdc++ -D_THREAD_SAFE -DSUNOS"
- LIBS="$LIBS -pthread -lcompat -lc_r -L/usr/local/lib -liconv";;
+ CFLAGS="$CFLAGS -I/usr/local/include -I/usr/src/contrib/libstdc++ \${PTHREAD_CFLAGS} -DSUNOS"
+ LIBS="$LIBS \${PTHREAD_LIBS} -lcompat -L/usr/local/lib -liconv";;
OpenBSD)
CFLAGS="$CFLAGS -I/usr/local/include -I/usr/src/contrib/libstdc++ -D_THREAD_SAFE -DSUNOS"
LIBS="$LIBS -pthread -lcompat -lc_r -L/usr/local/lib -liconv";;