hppahpux9 PATCH

Neal Becker neal at ctd.comsat.com
Mon Nov 24 08:07:06 PST 1997


Here is the patch I used to build kaffe-0.9.2 on hppa1.1 hpux9.05
egcs-971122.

Code is built but not yet tested.

It would be best to build kaffe with the link flag +s, which enables
the use of SHLIB_PATH to find the kaffe libs.  Stupidly, hp disables
this by default.  I can't find the place to add this to configure.


*** ./config/parisc/threads.h	1997/11/24 15:00:01	1.1
--- ./config/parisc/threads.h	1997/11/24 14:59:14
***************
*** 38,44 ****
  		(to)->restorePoint = (void *)regstore;			\
  	} while (0)
  
! #define THREADINFO(ee)
          do {                                                            \
                  register uint8 *sp __asm__("%r30");                     \
                  (ee)->restorePoint = NULL;                              \
--- 38,44 ----
  		(to)->restorePoint = (void *)regstore;			\
  	} while (0)
  
! #define THREADINFO(ee)							\
          do {                                                            \
                  register uint8 *sp __asm__("%r30");                     \
                  (ee)->restorePoint = NULL;                              \
*** ./kaffe/kaffevm/slib.h	1997/11/24 15:31:05	1.1
--- ./kaffe/kaffevm/slib.h	1997/11/24 15:33:01
***************
*** 83,91 ****
  #define	LIBRARYFUNCTION(FUNC, SYM)					\
  	{								\
  		shl_t all_libs = 0;					\
! 		if (shl_findsym(&all_libs,SYM,TYPE_PROCEDURE,&FUNC) == 0) { \
! 			break;						\
! 		}							\
  	}
  #define	LIBRARYHANDLE	shl_t
  #define	LIBRARYERROR()	"No specific error support"
--- 83,89 ----
  #define	LIBRARYFUNCTION(FUNC, SYM)					\
  	{								\
  		shl_t all_libs = 0;					\
! 		shl_findsym(&all_libs,SYM,TYPE_PROCEDURE,&FUNC);	\
  	}
  #define	LIBRARYHANDLE	shl_t
  #define	LIBRARYERROR()	"No specific error support"
*** ./kaffe/kaffevm/Makefile	1997/11/24 15:44:50	1.1
--- ./kaffe/kaffevm/Makefile	1997/11/24 15:44:52
***************
*** 85,91 ****
  # This fragement includes threads.s.  We only need this for non-gcc
  # compilations but, at the moment, I cannot conditionally exclude it.
  
! CPU_OBJECTS=	threads.o
  
  
  OBJECT=		$(COMMON) $(ENGINE_OBJECTS) $(CPU_OBJECTS) $(CPUOS_OBJECTS)
--- 85,91 ----
  # This fragement includes threads.s.  We only need this for non-gcc
  # compilations but, at the moment, I cannot conditionally exclude it.
  
! #CPU_OBJECTS=	threads.o
  
  
  OBJECT=		$(COMMON) $(ENGINE_OBJECTS) $(CPU_OBJECTS) $(CPUOS_OBJECTS)
*** ./configure	1997/11/24 14:47:52	1.1
--- ./configure	1997/11/24 15:24:10
***************
*** 1073,1081 ****
  	host_cpu=parisc
  	host_os=hpux
  	if test "$ac_cv_prog_gcc" = "yes" ; then
! 		PIC=fpic
  		LIBEXT=.sl
  		INSTALL_DATA='${INSTALL} -m 555'
  	else
  		# for the HP-UX c compiler only
  		dynamic_libraries=no
--- 1073,1083 ----
  	host_cpu=parisc
  	host_os=hpux
  	if test "$ac_cv_prog_gcc" = "yes" ; then
! 		PIC=-fpic
  		LIBEXT=.sl
  		INSTALL_DATA='${INSTALL} -m 555'
+ 		LD=$ac_cv_prog_CC
+ 		LIBSHARE='-shared -fpic'
  	else
  		# for the HP-UX c compiler only
  		dynamic_libraries=no



More information about the kaffe mailing list