components/r/Makefile
changeset 5452 f31d1604634e
parent 5365 447b67338e7f
child 5489 a5031bb8b66d
equal deleted inserted replaced
5451:ff0c0a96e393 5452:f31d1604634e
    48 LDFLAGS += $(studio_NORUNPATH)
    48 LDFLAGS += $(studio_NORUNPATH)
    49 
    49 
    50 LDFLAGS += $(CC_BITS)
    50 LDFLAGS += $(CC_BITS)
    51 
    51 
    52 LDFLAGS += $(studio_PIC)
    52 LDFLAGS += $(studio_PIC)
    53 LDFLAGS += $(LD_Z_TEXT)
       
    54 LDFLAGS += $(LD_DEF_LIBS)
    53 LDFLAGS += $(LD_DEF_LIBS)
    55 
    54 
    56 STUDIO_LIBS_PATH =	/usr/lib/studio/64
    55 STUDIO_LIBS_PATH =	/usr/lib/studio/64
    57 R_LIBS_PATH =		/usr/lib/$(MACH64)/R/lib
    56 R_LIBS_PATH =		/usr/lib/$(MACH64)/R/lib
    58 JAVA_LIBS_PATH =	$(JAVA8_HOME)/jre/lib/$(MACH64)/server
    57 JAVA_LIBS_PATH =	$(JAVA8_HOME)/jre/lib/$(MACH64)/server
    65 CONFIGURE_ENV += F77="$(F95) $(CC_BITS)"
    64 CONFIGURE_ENV += F77="$(F95) $(CC_BITS)"
    66 CONFIGURE_ENV += FC="$(F95) $(CC_BITS)"
    65 CONFIGURE_ENV += FC="$(F95) $(CC_BITS)"
    67 
    66 
    68 CONFIGURE_ENV += CPICFLAGS="$(studio_PIC)"
    67 CONFIGURE_ENV += CPICFLAGS="$(studio_PIC)"
    69 CONFIGURE_ENV += CFLAGS="-xO3 -xc99 -xlibmieee $(CC_BITS)"
    68 CONFIGURE_ENV += CFLAGS="-xO3 -xc99 -xlibmieee $(CC_BITS)"
    70 CONFIGURE_ENV += CXXFLAGS="-xO3 $(CC_BITS)"
    69 # Needed to successfully compile R packages using C++ code.
       
    70 CONFIGURE_ENV += CXXFLAGS="-xO3 $(CC_BITS) -std=c++03"
       
    71 CONFIGURE_ENV += CXX1FLAGS="-xO3 $(CC_BITS) -std=c++11"
    71 CONFIGURE_ENV += FPICFLAGS="$(studio_PIC)"
    72 CONFIGURE_ENV += FPICFLAGS="$(studio_PIC)"
    72 CONFIGURE_ENV += FFLAGS="-xO3 $(CC_BITS)"
    73 CONFIGURE_ENV += FFLAGS="-xO3 $(CC_BITS)"
    73 CONFIGURE_ENV += FCFLAGS="-xO3 $(CC_BITS)"
    74 CONFIGURE_ENV += FCFLAGS="-xO3 $(CC_BITS)"
    74 CONFIGURE_ENV += FCLIBS="-lsunperf -lfsu -lsunmath"
    75 CONFIGURE_ENV += FCLIBS="-lsunperf -lfsu -lsunmath"
    75 CONFIGURE_ENV += FLIBS="-lsunperf -lfsu -lsunmath"
    76 CONFIGURE_ENV += FLIBS="-lsunperf -lfsu -lsunmath"
    76 CONFIGURE_ENV += LDFLAGS="$(LDFLAGS) -L$(R_LIBS_PATH) -R$(R_LIBS_PATH)"
    77 CONFIGURE_ENV += LDFLAGS="$(LDFLAGS) -L$(R_LIBS_PATH) -R$(R_LIBS_PATH)"
       
    78 # Needed so that R packages using C++ code can link against the standard
       
    79 # C++ libraries.
       
    80 CONFIGURE_ENV += SHLIB_CXXLDFLAGS="-G -lstdc++ -lgcc_s -lCrunG3 -lrt -lm -lc"
    77 
    81 
    78 # Set the various Java variables otherwise it auto-detects the 32-bit ones.
    82 # Set the various Java variables otherwise it auto-detects the 32-bit ones.
    79 CONFIGURE_ENV += JAVA_CPPFLAGS="-I$(JAVA8_HOME)/jre/../include -I$(JAVA8_HOME)/jre/../include/solaris"
    83 CONFIGURE_ENV += JAVA_CPPFLAGS="-I$(JAVA8_HOME)/jre/../include -I$(JAVA8_HOME)/jre/../include/solaris"
    80 CONFIGURE_ENV += JAVA_LIBS="-L$(JAVA_LIBS_PATH) -R$(JAVA_LIBS_PATH) -ljvm"
    84 CONFIGURE_ENV += JAVA_LIBS="-L$(JAVA_LIBS_PATH) -R$(JAVA_LIBS_PATH) -ljvm"
    81 
    85