1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00

Fix pthreads build problem

PR:		28874
This commit is contained in:
Mark Pulford 2001-07-19 07:08:33 +00:00
parent 6dfb432074
commit 51f2eb63db
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=45238
2 changed files with 12 additions and 6 deletions

View File

@ -15,11 +15,11 @@ MAINTAINER= ports@FreeBSD.org
USE_GMAKE= yes
USE_GTK= yes
ALL_TARGET= gripnopar gcd
MAN1= grip.1
MLINKS= grip.1 gcd.1
MAKE_ENV+= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
post-patch:
@${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/*.c

View File

@ -1,6 +1,6 @@
--- Makefile.orig Thu Oct 19 04:12:53 2000
+++ Makefile Fri Oct 20 20:33:10 2000
@@ -4,24 +4,24 @@
--- Makefile.orig Thu Oct 19 04:42:53 2000
+++ Makefile Thu Jul 19 16:32:12 2001
@@ -4,29 +4,29 @@
OS=$(shell uname -s)
# Compiler
@ -21,7 +21,7 @@
# Compiler flags
-CFLAGS= -Wall `gtk-config --cflags` -DAUXDIR=\"$(AUXDIR)\" \
+CFLAGS+= `$(GTK_CONFIG) --cflags gthread` -DAUXDIR=\"$(AUXDIR)\" \
+CFLAGS+= $(PTHREAD_CFLAGS) `$(GTK_CONFIG) --cflags gthread` -DAUXDIR=\"$(AUXDIR)\" \
-DINSTALLDIR=\"$(INSTALLDIR)\" -D_REENTRANT
# Link libraries
@ -30,3 +30,9 @@
ifeq ($(OS), Linux)
LIBS+= -lpthread
endif
ifeq ($(OS), FreeBSD)
-LIBS+= -pthread
+LIBS+= $(PTHREAD_LIBS)
endif
PARLIBS= cdparanoia/interface/libcdda_interface.a \
cdparanoia/paranoia/libcdda_paranoia.a