diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-07-07 05:54:43 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-07-07 05:54:43 +0000 |
commit | 8de33674538a324290afb23fddccfb581726a1a2 (patch) | |
tree | cf96807a8424a6c3493ea5de7db2305015757bef /acinclude.m4 | |
parent | 04b1b727dddde5b0b1babbbc1a56a4be8f85c603 (diff) | |
download | php-git-8de33674538a324290afb23fddccfb581726a1a2.tar.gz |
Fixed support for shared extensions on AIX
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 4f4e06a3cf..8a24f9a8a6 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -850,6 +850,10 @@ AC_DEFUN([PHP_SHARED_MODULE],[ install_modules="install-modules" case $host_alias in + *aix*[)] + suffix=so + link_cmd='$(LIBTOOL) --mode=link ifelse($4,,[$(CC)],[$(CXX)]) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$3'/$1.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $($2) $(translit($1,a-z_-,A-Z__)_SHARED_LIBADD) && mv -f '$3'/.libs/$1.so '$3'/$1.so' + ;; *darwin*[)] suffix=so link_cmd='ifelse($4,,[$(CC)],[$(CXX)]) -dynamic -flat_namespace -bundle -undefined suppress $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o [$]@ $(EXTRA_LDFLAGS) $($2) $(translit($1,a-z_-,A-Z__)_SHARED_LIBADD)' |