summaryrefslogtreecommitdiffstats
path: root/bin/ltconfig
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>1999-09-28 00:01:32 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>1999-09-28 00:01:32 (GMT)
commitf6a86261bc0f2a3e71d67ed2ecf19fe4baa38a12 (patch)
tree5626f92223910ea61c3a1a751f19e5eb20a7f583 /bin/ltconfig
parent60f3f5e5c05aa4ebd76aedda4bc5c3b517cf73cb (diff)
downloadhdf5-f6a86261bc0f2a3e71d67ed2ecf19fe4baa38a12.zip
hdf5-f6a86261bc0f2a3e71d67ed2ecf19fe4baa38a12.tar.gz
hdf5-f6a86261bc0f2a3e71d67ed2ecf19fe4baa38a12.tar.bz2
[svn-r1672] bin/ltconfig:
ltconfig used just an empty source file to test the share lib compiler options. SUNSpro CC returns succeed though it issues a warning too. ltconfig did not like the warning. Changed it to test with a file containing a simple dummy program. Platform tested: solaris 2.6 and 2.7 config/solaris2.x: Changed default compiler to "cc" now that Sunpro CC can produce static and shared codes correctly. Also added -s to PROD_CFLAGS to produce leaner binary files.
Diffstat (limited to 'bin/ltconfig')
-rwxr-xr-xbin/ltconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ltconfig b/bin/ltconfig
index 2347e69..adc36bc 100755
--- a/bin/ltconfig
+++ b/bin/ltconfig
@@ -541,7 +541,7 @@ if test -n "$pic_flag"; then
# Check to make sure the pic_flag actually works.
echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6
$rm conftest*
- echo > conftest.c
+ echo 'main(){return(0);}' > conftest.c
save_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $pic_flag -DPIC"
echo "$progname:547: checking if $compiler PIC flag $pic_flag works" >&5