Permalink
Browse files

Fix modperl build on MacOS X

.so is not the right extension for shared objects there

(cherry picked from commit d05e069)
  • Loading branch information...
1 parent e31635d commit 5ab0a821bcd0ce008c5411b7f1a9d20fc807898a @DarthGandalf DarthGandalf committed Jan 17, 2014
Showing with 1 addition and 2 deletions.
  1. +1 −2 modules/modperl/Makefile.inc
@@ -9,16 +9,15 @@ PERL_CXX += -Wno-write-strings -Wno-redundant-decls -Wno-missing-declarations
PERL_CXX += -Wno-type-limits -Wno-sign-compare -Wno-strict-overflow -Wno-unused-value
# This is for SWIG
PERL_CXX += -DSWIG_TYPE_TABLE=znc
+PERLCEXT_EXT := $(shell $(PERL) -MConfig -e'print $$Config::Config{dlext}')
modperlCXXFLAGS := $(PERL_CXX) -Wno-unused-function
modperlLDFLAGS := $(PERL_LD)
# Find additional headers for out-of-tree build
modperlCXXFLAGS += -I.
ifeq "$(ISCYGWIN)" "1"
-PERLCEXT_EXT := dll
PERLDEPONMOD := modperl.so
else
-PERLCEXT_EXT := so
PERLDEPONMOD :=
endif

0 comments on commit 5ab0a82

Please sign in to comment.