diff options
author | sbd <sbd@pkgsrc.org> | 2012-01-29 02:54:18 +0000 |
---|---|---|
committer | sbd <sbd@pkgsrc.org> | 2012-01-29 02:54:18 +0000 |
commit | 687a6830f31849a47a6cb9bac1404a64be0dfb3c (patch) | |
tree | d6b8047906db6ff2381df0285d2271adf8ea54af | |
parent | d3826fbfe0f0d5d4d263a82e65218e60ce686934 (diff) | |
download | pkgsrc-687a6830f31849a47a6cb9bac1404a64be0dfb3c.tar.gz |
Build a static binary with threads is currently broken with glibc.
-rw-r--r-- | archivers/dar/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/archivers/dar/Makefile b/archivers/dar/Makefile index ccf383a7eea..7d9f6266885 100644 --- a/archivers/dar/Makefile +++ b/archivers/dar/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.37 2011/08/20 16:02:23 cheusov Exp $ +# $NetBSD: Makefile,v 1.38 2012/01/29 02:54:18 sbd Exp $ DISTNAME= dar-2.4.1 CATEGORIES= archivers sysutils @@ -93,6 +93,17 @@ UNLIMIT_RESOURCES= datasize # CPPFLAGS.SunOS+= -D__EXTENSIONS__ +.include "../../mk/bsd.fast.prefs.mk" + +## Build a static binary with threads is currently broken with glibc. +.if ${OPSYS} == "Linux" && !empty(PKG_OPTIONS:Mthreads) +SUBST_CLASSES+= static +SUBST_STAGE.static= post-patch +SUBST_MESSAGE.static= Changing -all-static to -static +SUBST_FILES.static= src/testing/Makefile.in +SUBST_SED.static= -e 's,-all-static,-static,g' +.endif + .include "../../archivers/bzip2/buildlink3.mk" .include "../../devel/gettext-lib/buildlink3.mk" .include "../../devel/zlib/buildlink3.mk" |