From 6d690740a64702339294fd6f9795937a8c6ca478 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 23 Jul 2002 15:01:51 +0000 Subject: [PATCH] Mods for HP-UX port. --- Make/makedefs | 26 +++----------------------- Make/makerules | 2 +- include/osg/Math | 13 +++++++++---- 3 files changed, 13 insertions(+), 28 deletions(-) diff --git a/Make/makedefs b/Make/makedefs index 020bcad1e..b0422ed6a 100644 --- a/Make/makedefs +++ b/Make/makedefs @@ -49,13 +49,7 @@ INST_DOC = $(INST_SHARE_PREFIX)/OpenSceneGraph/doc INST_DATA = $(INST_SHARE_PREFIX)/OpenSceneGraph/data INST_DEMO_SRC = $(INST_SRC)/demos -ifneq ($(OS),HP-UX) LINK = ln -sf -else -# HP-UX linker seems to have problems with symlinked libs - -# somehow paths like "../../.." get into the executables -LINK = cp -f -endif INSTBINCMD = install -m 755 INSTDEVCMD = install -m 644 INSTLINKBINCMD = $(LINK) @@ -467,25 +461,11 @@ ifeq ($(OS),HP-UX) SHARED = -shared -fPIC ARCH = 32 ifeq ($(ARCH),64) - # not yet tested + # not yet tested ARCHARGS = -march=2.0 - # I don't have performer - just a wild guess of the directory - PF_XTRA_LIBS = -L/opt/graphics/libpfdb -Wl,-rpath -Wl,/opt/graphics/libpfdb \ - -lpf3ds -lpfdem -lpfdted -lpfdwb -lpfdxf -lpfevt \ - -lpfflt -lpfgds -lpfgfo -lpfim -lpflsa -lpflsb \ - -lpfnff -lpfobj -lpfpegg -lpfpfb -lpfphd -lpfpts \ - -lpfrot -lpfscale -lpfsgf -lpfsgo -lpfsphere -lpfsv \ - -lpftri -lpfunc -lpfvct -lpfdu -lpfutil -lpf -limage else - # at least my gcc 3.1 defaults to HP-PA RISC 1.1 - ARCHARGS = - # I don't have performer - just a wild guess of the directory - PF_XTRA_LIBS = -L/opt/graphics/libpfdb -Wl,-rpath -Wl,/usr/lib64/libpfdb \ - -lpf3ds -lpfdem -lpfdted -lpfdwb -lpfdxf -lpfevt \ - -lpfflt -lpfgds -lpfgfo -lpfim -lpflsa -lpflsb \ - -lpfnff -lpfobj -lpfpegg -lpfpfb -lpfphd -lpfpts \ - -lpfrot -lpfscale -lpfsgf -lpfsgo -lpfsphere -lpfsv \ - -lpftri -lpfunc -lpfvct -lpfdu -lpfutil -lpf -limage + # at least my gcc 3.1 defaults to HP-PA RISC 1.1 + ARCHARGS = endif LINKARGS = -lpthread LIB_EXT = sl diff --git a/Make/makerules b/Make/makerules index b5cec385b..5a525c395 100644 --- a/Make/makerules +++ b/Make/makerules @@ -75,7 +75,7 @@ ifeq ($(OS),HP-UX) # we need to explicitly tell the linker the library name - else it will # include paths like ../../../libosg.sl into executables $(LIB) $(PLUGIN) : $(OBJS) - $(C++) $(LDFLAGS) $(SHARED) $(OBJS) $(LIBS) -Wl,+h -Wl,$@ -Wl,-v -o $@ + $(C++) $(LDFLAGS) $(SHARED) $(OBJS) $(LIBS) -Wl,+h -Wl,$@ -o $@ else $(LIB) $(PLUGIN) : $(OBJS) $(C++) $(LDFLAGS) $(SHARED) $(OBJS) $(LIBS) -o $@ diff --git a/include/osg/Math b/include/osg/Math index ccb5eea36..fd4453477 100644 --- a/include/osg/Math +++ b/include/osg/Math @@ -7,7 +7,7 @@ #include -#if defined(WIN32) || defined (macintosh)|| defined (sun) || defined (__DARWIN_OSX__) || defined(__hpux__) +#if defined(WIN32) || defined (macintosh)|| defined (sun) || defined (__DARWIN_OSX__) #include @@ -36,9 +36,6 @@ #define logf (float)log #endif - #ifndef floorf - #define floorf (float)floor - #endif #ifndef powf #define powf (float)pow @@ -55,6 +52,14 @@ #ifndef isnanf #define isnanf (float)isnan #endif + +#endif + +#if defined(WIN32) || defined (macintosh)|| defined (sun) || defined (__DARWIN_OSX__) || defined (__hpux__) + + #ifndef floorf + #define floorf (float)floor + #endif #endif