This adds a static flavor to www/nginx port, to build a statically
linked nginx binary. Typically to put in a chroot.
Cheers,
--
Thomas de Grivel
06 14 55 01 27
thomasdegri...@gmail.com
http://www.viadeo.com/fr/profile/thomas.de-grivel
http://fr.linkedin.com/in/thomasdegrivel
LowH - Services Web & SI
c/o Ménage A Trois - Collectif Video / Web / Print
56 rue du Faubourg St-Antoine
75012 Paris
http://ma3.tv/
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/nginx/Makefile,v
retrieving revision 1.37
diff -u -p -r1.37 Makefile
--- Makefile 27 Dec 2010 14:50:24 -0000 1.37
+++ Makefile 1 Jun 2011 17:25:10 -0000
@@ -48,7 +48,7 @@ CONFIGURE_ARGS= --prefix=${SYSCONFDIR}/
--with-mail_ssl_module \
--with-ipv6
-FLAVORS= passenger
+FLAVORS= passenger static
FLAVOR?=
.if ${FLAVOR:L:Mpassenger}
@@ -56,6 +56,11 @@ CONFIGURE_ARGS += --add-module=${LOCALBA
BUILD_DEPENDS += www/ruby-passenger
RUN_DEPENDS += www/ruby-passenger
WANTLIB += m pthread stdc++
+.endif
+
+.if ${FLAVOR:L:Mstatic}
+CONFIGURE_ARGS += --with-ld-opt="-static -static-libgcc" \
+ --with-cc-opt="-static -static-libgcc"
.endif
NO_REGRESS= Yes