We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b484021 commit 23e3bd4Copy full SHA for 23e3bd4
Makefile
@@ -80,8 +80,14 @@ else
80
endif
81
82
ifeq ($(uname_S),SunOS)
83
+ IS_SUN_CC=$(shell sh -c '$(CC) -V 2>&1 |egrep -i -c "sun|studio"')
84
+ ifeq ($(IS_SUN_CC),1)
85
+ SUN_SHARED_FLAG=-G
86
+ else
87
+ SUN_SHARED_FLAG=-shared
88
+ endif
89
REAL_LDFLAGS+= -ldl -lnsl -lsocket
- DYLIB_MAKE_CMD=$(CC) -G -o $(DYLIBNAME) -h $(DYLIB_MINOR_NAME) $(LDFLAGS)
90
+ DYLIB_MAKE_CMD=$(CC) $(SUN_SHARED_FLAG) -o $(DYLIBNAME) -h $(DYLIB_MINOR_NAME) $(LDFLAGS)
91
92
ifeq ($(uname_S),Darwin)
93
DYLIBSUFFIX=dylib
0 commit comments