summaryrefslogtreecommitdiff
blob: 248ac631af58d13407fc54cea00848ddda970a91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: OpenNI2-9999/ThirdParty/PSCommon/BuildSystem/CommonCppMakefile
===================================================================
--- OpenNI2-9999.orig/ThirdParty/PSCommon/BuildSystem/CommonCppMakefile
+++ OpenNI2-9999/ThirdParty/PSCommon/BuildSystem/CommonCppMakefile
@@ -84,7 +84,7 @@ ifneq "$(LIB_NAME)" ""
 	ifneq ("$(OSTYPE)","Darwin")
 		LDFLAGS += -Wl,--no-undefined
 		OUTPUT_NAME = lib$(LIB_NAME).so
-		OUTPUT_COMMAND = $(CXX) -o $(OUTPUT_FILE) $(OBJ_FILES) $(LDFLAGS) -shared
+		OUTPUT_COMMAND = $(CXX) -o $(OUTPUT_FILE) $(OBJ_FILES) -Wl,-soname,$(OUTPUT_NAME) $(LDFLAGS) -shared
 	else
 		LDFLAGS += -undefined error
 		OUTPUT_NAME = lib$(LIB_NAME).dylib