mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Use -lgcc_r only if /usr/lib/libgcc_r.a actually exists.
Prompted by: Anders Andersson <anders@codefactory.se>
This commit is contained in:
parent
120d218d04
commit
3fef94ce7c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38591
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user