components/libgsl/Makefile
changeset 4158 120144d5f6f3
parent 4119 bdf7d6775e82
child 4339 6501cf9c29f9
equal deleted inserted replaced
4155:a34b80912b68 4158:120144d5f6f3
    37 
    37 
    38 include $(WS_MAKE_RULES)/prep.mk
    38 include $(WS_MAKE_RULES)/prep.mk
    39 include $(WS_MAKE_RULES)/configure.mk
    39 include $(WS_MAKE_RULES)/configure.mk
    40 include $(WS_MAKE_RULES)/ips.mk
    40 include $(WS_MAKE_RULES)/ips.mk
    41 
    41 
    42 # Recreate configure and various Makefiles to pickup libsunperf changes.
    42 # By default, tests in each GSL sub-directory are linked statically against
       
    43 # a set of .la files. We don't deliver those in the GSL package, so we
       
    44 # adjust all the tests to link against the dynamic GSL library instead.
       
    45 COMPONENT_POST_UNPACK_ACTION = \
       
    46 	(cd $(COMPONENT_SRC); \
       
    47 	for f in `ls */Makefile.am` ; do \
       
    48 	    $(GSED) -i -e \
       
    49 		's|^test_LDADD.*$$|test_LDFLAGS = -L`pwd`/../.libs/ -R`pwd`/../.libs/\ntest_LDADD = -lgsl|' \
       
    50 		$$f ; \
       
    51 	done)
       
    52 
       
    53 # Recreate configure and top-level Makefile to pickup libsunperf changes.
    43 COMPONENT_PREP_ACTION = \
    54 COMPONENT_PREP_ACTION = \
    44 	(cd $(@D) ; ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf -f)
    55 	(cd $(@D) ; ACLOCAL=aclocal-1.11 AUTOMAKE=automake-1.11 autoreconf -f)
    45 
       
    46 # Get rid of compiler path set in RUNPATH.
       
    47 LDFLAGS += $(studio_NORUNPATH)
       
    48 
    56 
    49 LDFLAGS += $(CC_BITS)
    57 LDFLAGS += $(CC_BITS)
    50 LDFLAGS += $(studio_PIC)
    58 LDFLAGS += $(studio_PIC)
    51 LDFLAGS += $(studio_OPT)
    59 LDFLAGS += $(studio_OPT)
    52 LDFLAGS += $(LD_Z_TEXT)
    60 LDFLAGS += $(LD_Z_TEXT)
    64 
    72 
    65 COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
    73 COMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
    66 COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)"
    74 COMPONENT_BUILD_ARGS += LDFLAGS="$(LDFLAGS)"
    67 
    75 
    68 CC += $(CC_BITS)
    76 CC += $(CC_BITS)
    69 
       
    70 # Needed to pass -norunpath to the shared library link.
       
    71 CC += $(studio_NORUNPATH)
       
    72 
    77 
    73 COMPONENT_TEST_ARGS =	-k -i
    78 COMPONENT_TEST_ARGS =	-k -i
    74 
    79 
    75 # Master test results are different not only between 32-bit and 64-bit, but
    80 # Master test results are different not only between 32-bit and 64-bit, but
    76 # also between x86 and SPARC (different # of tests run).
    81 # also between x86 and SPARC (different # of tests run).
    97 
   102 
    98 build:		$(BUILD_32_and_64)
   103 build:		$(BUILD_32_and_64)
    99 
   104 
   100 install:	$(INSTALL_32_and_64)
   105 install:	$(INSTALL_32_and_64)
   101 
   106 
       
   107 # There are known problems in libsunperf that are causing GSL test failures
       
   108 # in Solaris 12 with Studio 12.4 just on the x86 platform:
       
   109 # linalg: FAIL:   LQ_update m(5,3) [88]                             (32-bit)
       
   110 # caused by 20914954 cblas_gemm differences between x86 and sparcv7
       
   111 # linalg: FAIL:   cholesky_invert hilbert(4)                        (64-bit)
       
   112 # caused by 20909151 cblas_dsymm differences between amd64 and sparcv9.
   102 test:		$(TEST_32_and_64)
   113 test:		$(TEST_32_and_64)
   103 
   114 
   104 REQUIRED_PACKAGES += shell/ksh93
   115 REQUIRED_PACKAGES += shell/ksh93
   105 REQUIRED_PACKAGES += system/library
   116 REQUIRED_PACKAGES += system/library
   106 REQUIRED_PACKAGES += system/library/math
   117 REQUIRED_PACKAGES += system/library/math