Wrap the apxs command so we can fix -R option not working on solaris.

This commit is contained in:
brectanus
2008-01-29 20:50:35 +00:00
parent d350c5f5d9
commit 764fe94ab0
3 changed files with 18 additions and 2 deletions

12
apache2/build/apxs-wrapper.in Executable file
View File

@@ -0,0 +1,12 @@
#!@SHELL@
WRAPPED_OPTS=""
for opt in "$@"; do
case "$opt" in
# Fix for -R not working w/apxs
-R*) WRAPPED_OPTS="$WRAPPED_OPTS -Wl,$opt" ;;
*) WRAPPED_OPTS="$WRAPPED_OPTS $opt" ;;
esac
done
exec @APXS@ $WRAPPED_OPTS