summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2000-11-17 03:33:00 +0100
committerJeff Trawick <trawick@apache.org>2000-11-17 03:33:00 +0100
commit0bb6b7f1d652b02a53817e98bf92f5eb219bb4a0 (patch)
tree7eb42bd3fc148ce6016148b0c8b7c69f0bb149c6 /build
parentThis removes all BUFF's from the HTTP proxy. This code is relatively (diff)
downloadapache2-0bb6b7f1d652b02a53817e98bf92f5eb219bb4a0.tar.xz
apache2-0bb6b7f1d652b02a53817e98bf92f5eb219bb4a0.zip
Get exports.c symbols to compile even if the declaration is hidden in
APR include file. Implement all exports.c symbols even if the package or function isn't available in the current configuration. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86989 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rwxr-xr-xbuild/buildexports.sh12
1 files changed, 4 insertions, 8 deletions
diff --git a/build/buildexports.sh b/build/buildexports.sh
index b1b8b54a83..72a14e4f55 100755
--- a/build/buildexports.sh
+++ b/build/buildexports.sh
@@ -7,25 +7,21 @@ echo "/* This is an ugly hack that needs to be here, so that libtool will"
echo " * link all of the APR functions into server regardless of whether"
echo " * the base server uses them."
echo " */"
-echo ""
-cd lib/apr/include
-for file in *.h
-do
- echo "#include \"$file\""
-done
-cd ../../../
-echo ""
echo ""
while read LINE
do
if [ "x`echo $LINE | egrep '^[:space:]*apr_'`" != "x" ]; then
newline=`echo "$LINE" |\
+ sed -e 's%^\(.*\)%extern const void *\1\\(void\);%'`
+ echo $newline
+ newline=`echo "$LINE" |\
sed -e 's%^\(.*\)%const void *ap_hack_\1 = \(const void *\)\1\;%'`
echo $newline
fi
done
+echo ""
echo "void *ap_ugly_hack;"
exit 0