Page MenuHomeFreeBSD

D7173.id18255.diff
No OneTemporary

D7173.id18255.diff

Index: bsd.gcc.mk
===================================================================
--- bsd.gcc.mk
+++ bsd.gcc.mk
@@ -17,6 +17,11 @@
# do so by specifying USE_GCC=X.Y+ which requests at least GCC version
# X.Y. To request a specific version omit the trailing + sign.
#
+# Additionally, one can path arguments, for example USE_GCC=X.Y+ arg
+# Supported args:
+# static # port does static build only and
+# # does not need libgcc RUN_DEPEND
+#
# Examples:
# USE_GCC= yes # port requires a current version of GCC
# # as defined in bsd.default-versions.mk.
@@ -52,6 +57,11 @@
# No configurable parts below this. ####################################
#
+.if defined(USE_GCC) && ${USE_GCC:Mstatic}
+_GCC_NO_RUN_DEPEND= yes
+USE_GCC:= ${USE_GCC:Nstatic}
+.endif
+
.if defined(USE_GCC) && ${USE_GCC} == yes
USE_GCC= ${GCC_DEFAULT}+
.endif
@@ -174,7 +184,9 @@
.if defined(_GCC_PORT_DEPENDS)
BUILD_DEPENDS+= ${_GCC_PORT_DEPENDS}:lang/${_GCC_PORT}
+.if !defined(_GCC_NO_RUN_DEPEND)
RUN_DEPENDS+= ${_GCC_PORT_DEPENDS}:lang/${_GCC_PORT}
+.endif
# Later GCC ports already depend on binutils; make sure whatever we
# build leverages this as well.
USE_BINUTILS= yes

File Metadata

Mime Type
text/plain
Expires
Wed, Jul 22, 7:24 PM (2 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35375606
Default Alt Text
D7173.id18255.diff (1 KB)

Event Timeline