Use -lgcc_r only if /usr/lib/libgcc_r.a actually exists.

Prompted by:	Anders Andersson <anders@codefactory.se>
This commit is contained in:
Maxim Sobolev 2001-02-22 10:01:04 +00:00
parent 120d218d04
commit 3fef94ce7c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=38591
2 changed files with 10 additions and 2 deletions

View File

@ -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)

View File

@ -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)