shithub: openh264

Download patch

ref: 3d263d1087d71863e74ef2870dd840f1e82eba3e
parent: 9b59e502920dcc1b593d29914460b61276b8add7
author: Martin Storsjö <martin@martin.st>
date: Mon Dec 1 09:28:45 EST 2014

Set a default SHAREDLIB_DIR in the main Makefile

Only override it in the ones where the default isn't desired.

--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@
 PREFIX=/usr/local
 SHARED=-shared
 OBJ=o
+SHAREDLIB_DIR=$(PREFIX)/lib
 PROJECT_NAME=openh264
 MODULE_NAME=gmpopenh264
 GMP_API_BRANCH=master
--- a/build/platform-android.mk
+++ b/build/platform-android.mk
@@ -1,6 +1,5 @@
 ARCH = arm
 include $(SRC_PATH)build/arch.mk
-SHAREDLIB_DIR = $(PREFIX)/lib
 SHAREDLIBSUFFIX = so
 # Android APK/JARs expect libraries to be unversioned
 SHAREDLIBSUFFIXVER=$(SHAREDLIBSUFFIX)
--- a/build/platform-freebsd.mk
+++ b/build/platform-freebsd.mk
@@ -1,5 +1,4 @@
 include $(SRC_PATH)build/arch.mk
-SHAREDLIB_DIR = $(PREFIX)/lib
 SHAREDLIBSUFFIX = so
 SHAREDLIBSUFFIXVER=$(SHAREDLIBSUFFIX).$(SHAREDLIBVERSION)
 SHLDFLAGS = -Wl,-soname,$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXVER)
--- a/build/platform-linux.mk
+++ b/build/platform-linux.mk
@@ -1,5 +1,4 @@
 include $(SRC_PATH)build/arch.mk
-SHAREDLIB_DIR = $(PREFIX)/lib
 SHAREDLIBSUFFIX = so
 SHAREDLIBSUFFIXVER=$(SHAREDLIBSUFFIX).$(SHAREDLIBVERSION)
 SHLDFLAGS = -Wl,-soname,$(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXVER)