diff options
author | mandree <mandree@FreeBSD.org> | 2011-06-21 05:14:23 +0800 |
---|---|---|
committer | mandree <mandree@FreeBSD.org> | 2011-06-21 05:14:23 +0800 |
commit | b0715627affdcecf398f4a8487f9a0960c47c5ac (patch) | |
tree | 5581295cca3ff09542f3aa650ae98c3361e7be21 /security/openvpn | |
parent | 6a03c566048a23ff8e06ed4d901e09b304cf631a (diff) | |
download | freebsd-ports-gnome-b0715627affdcecf398f4a8487f9a0960c47c5ac.tar.gz freebsd-ports-gnome-b0715627affdcecf398f4a8487f9a0960c47c5ac.tar.zst freebsd-ports-gnome-b0715627affdcecf398f4a8487f9a0960c47c5ac.zip |
Patch hardwired gcc to ${CC}, fixing clang-ports builds [1].
Use full ${MAKE} environment from do-build, for consistency.
Found by: -exp run [1].
Diffstat (limited to 'security/openvpn')
-rw-r--r-- | security/openvpn/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/security/openvpn/Makefile b/security/openvpn/Makefile index c3cc8c7da614..66504ff9d6ac 100644 --- a/security/openvpn/Makefile +++ b/security/openvpn/Makefile @@ -72,16 +72,17 @@ post-patch: @${FIND} ${WRKSRC}/easy-rsa/?.0 -type f \ -exec ${REINPLACE_CMD} -e 's;#!/bin/bash;#!/bin/sh;' \ -e 's,source ./vars,. ./vars,' \{\} + - @${FIND} ${WRKSRC} -name \*.orig -delete - @${FIND} ${WRKSRC} -name \*.bak -delete + @${FIND} ${WRKSRC}/plugin -name Makefile \ + -exec ${REINPLACE_CMD} -e 's;gcc;${CC};g' '{}' + + @${FIND} ${WRKSRC} \( -name \*.orig -o -name \*.bak \) -delete post-build: - cd ${WRKSRC}/plugin/down-root && ${MAKE} + cd ${WRKSRC}/plugin/down-root && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} cd ${WRKSRC}/plugin/auth-pam && ${CC} ${CPPFLAGS} -I../.. -DDLOPEN_PAM=0 ${CFLAGS} -fPIC -shared -Wl,-soname,openvpn-auth-pam.so -o openvpn-auth-pam.so auth-pam.c pamdl.c -lc -lpam @# self-tests here .if !defined(WITHOUT_CHECK) @${ECHO} ; ${ECHO} "### Note that you can skip these lengthy selftests with WITHOUT_CHECK=yes ###" ; ${ECHO} - cd ${WRKSRC} && ${MAKE} check + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${_MAKE_JOBS} ${MAKE_ARGS} check .endif post-install: |