Start from about line 1847, it looks like the below, line 1861 is not needed if we use gcc instead of aCC, since gcc doesn't recognize option "+z" ============================================================================== 1847 *hpux*) AC_DEFINE(HPUX,1,[Whether the host os is HPUX]) 1848 # Use special PIC flags for the native HP-UX compiler. 1849 BLDSHARED="true" 1850 SHLD="cc" 1851 LDSHFLAGS="-b -Wl,-B,symbolic,-b,-z" 1852 SONAMEFLAG="-Wl,+h " 1853 PICFLAG="+z" 1854 if test "${GCC}" = "yes"; then 1855 PICFLAG="-fPIC" 1856 else 1857 PICFLAG="+z +ESnolit" 1858 fi 1859 if test "$host_cpu" = "ia64"; then 1860 SHLIBEXT="so" 1861 PICFLAG="+z" 1862 DYNEXP="-Wl,-E,+b/usr/local/lib/hpux32:/usr/lib/hpux32" 1863 else 1864 SHLIBEXT="sl" 1865 DYNEXP="-Wl,-E,+b/usr/local/lib:/usr/lib" 1866 fi
Oh, the content is from configure.in
The description is not exact for HPUX 11.11 with gcc, the following patch can resolve samba build via gcc for all hpux platform. But if you use hpux's compiler, it may(no test on this) be better to stay as it was: diff --git a/source3/configure.in b/source3/configure.in index 408340d..6e11697 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1650,14 +1650,17 @@ DSO_EXPORTS="" SONAMEFLAG="-Wl,+h " PICFLAG="+z" if test "${GCC}" = "yes"; then + BLDSHARED="true" + SHLD="gcc" + LDSHFLAGS="-shared" + SONAMEFLAG="-Wl,+h" PICFLAG="-fPIC" else PICFLAG="+z +ESnolit" fi if test "$host_cpu" = "ia64"; then SHLIBEXT="so" - PICFLAG="+z" - DYNEXP="-Wl,-E,+b/usr/local/lib/hpux32:/usr/lib/hpux32" + DYNEXP="" else SHLIBEXT="sl" DYNEXP="-Wl,-E,+b/usr/local/lib:/usr/lib"
We no longer have 'configure.in', etc.