summaryrefslogtreecommitdiffstats
path: root/www/galeon
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-02-22 10:01:04 +0000
committersobomax <sobomax@FreeBSD.org>2001-02-22 10:01:04 +0000
commiteb27de43ebbce3ee15e7b2230b86e88ad2539b0e (patch)
tree7d8684569a332806bebb3ab06a95a1467b1b2fa6 /www/galeon
parent9ab9e4ac0ab0d8d08f2d0f48355be982e535ae8b (diff)
downloadFreeBSD-ports-eb27de43ebbce3ee15e7b2230b86e88ad2539b0e.zip
FreeBSD-ports-eb27de43ebbce3ee15e7b2230b86e88ad2539b0e.tar.gz
Use -lgcc_r only if /usr/lib/libgcc_r.a actually exists.
Prompted by: Anders Andersson <anders@codefactory.se>
Diffstat (limited to 'www/galeon')
-rw-r--r--www/galeon/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/www/galeon/Makefile b/www/galeon/Makefile
index 7763801..b65b50d 100644
--- a/www/galeon/Makefile
+++ b/www/galeon/Makefile
@@ -40,7 +40,11 @@ CONFIGURE_ARGS= --with-mozilla-includes="${X11BASE}/include/mozilla" \
--with-mozilla-libs="${X11BASE}/lib/${MOZILLA}"
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include \
-D_REENTRANT -D_THREAD_SAFE -fno-rtti" \
- LIBS="-L${LOCALBASE}/lib -L${WRKSRC} -pthread -lgcc_r"
+ LIBS="-L${LOCALBASE}/lib -L${WRKSRC} -pthread ${GCC_R_LIB}"
+
+.if exists(/usr/lib/libgcc_r.a)
+GCC_R_LIB= -lgcc_r
+.endif
post-extract:
.if !defined(WITH_FULL_MOZILLA)
OpenPOWER on IntegriCloud