Author: jfrederic.clere(a)jboss.com
Date: 2008-01-11 12:32:07 -0500 (Fri, 11 Jan 2008)
New Revision: 1273
Modified:
trunk/build/unix/build.sh
trunk/build/unix/buildbin.rhel-httpd.sh
trunk/build/unix/buildsrc.rhel-httpd.sh
trunk/build/unix/util/jlibtool.c
Log:
Arrange HPUX build.
Modified: trunk/build/unix/build.sh
===================================================================
--- trunk/build/unix/build.sh 2008-01-11 11:08:23 UTC (rev 1272)
+++ trunk/build/unix/build.sh 2008-01-11 17:32:07 UTC (rev 1273)
@@ -249,6 +249,8 @@
HP-UX*)
BUILD_SYS="hpux"
has_posix_tar=false
+ CC=cc
+ export CC
;;
windows)
so_extension=dll
Modified: trunk/build/unix/buildbin.rhel-httpd.sh
===================================================================
--- trunk/build/unix/buildbin.rhel-httpd.sh 2008-01-11 11:08:23 UTC (rev 1272)
+++ trunk/build/unix/buildbin.rhel-httpd.sh 2008-01-11 17:32:07 UTC (rev 1273)
@@ -119,6 +119,9 @@
linux*)
add_conf="$add_conf --enable-pie"
;;
+ hpux*)
+ add_conf="$add_conf --enable-experimental-libtool --enable-shared"
+ ;;
esac
echo "Building prefork and mpm"
native_sources=srclib/`ls srclib | grep httpd-`
Modified: trunk/build/unix/buildsrc.rhel-httpd.sh
===================================================================
--- trunk/build/unix/buildsrc.rhel-httpd.sh 2008-01-11 11:08:23 UTC (rev 1272)
+++ trunk/build/unix/buildsrc.rhel-httpd.sh 2008-01-11 17:32:07 UTC (rev 1273)
@@ -115,6 +115,13 @@
${WHERE}/patch.sh
)
+# Replace libtool by our libtool
+case ${BUILD_SYS} in
+ hpux*)
+ cp ${build_top}/util/jlibtool.c ${dirsources}/srclib/apr/build
+ ;;
+esac
+
#
# regenerate configure scripts
# XXX: It seems that produces a destroyed configure (on f8 and hpux at least).
Modified: trunk/build/unix/util/jlibtool.c
===================================================================
--- trunk/build/unix/util/jlibtool.c 2008-01-11 11:08:23 UTC (rev 1272)
+++ trunk/build/unix/util/jlibtool.c 2008-01-11 17:32:07 UTC (rev 1273)
@@ -164,6 +164,22 @@
# define EXE_EXT ".exe"
#endif
+#if defined(__hpux)
+# define SHELL_CMD "/usr/bin/sh"
+# define DYNAMIC_LIB_EXT "sl"
+# define MODULE_LIB_EXT "sl"
+# define STATIC_LIB_EXT "a"
+# define OBJECT_EXT "o"
+# define LIBRARIAN "ar"
+# define LIBRARIAN_OPTS "csr"
+# define RPATH "+b"
+# define SHARED_OPTS "-b"
+# define MODULE_OPTS "-b"
+# define DYNAMIC_LINK_OPTS "-Wl,+s"
+# define LINKER_FLAG_PREFIX "-Wl,"
+# define LD_LIBRARY_PATH "SHLIB_PATH"
+#endif
+
#ifndef SHELL_CMD
#error Unsupported platform: Please add defines for SHELL_CMD etc. for your platform.
#endif