46 lines
1.2 KiB
Plaintext
46 lines
1.2 KiB
Plaintext
$OpenBSD: patch-make_linux_Makefile,v 1.2 2006/03/28 01:06:52 jolan Exp $
|
|
--- make/linux/Makefile.orig Tue Apr 19 01:56:06 2005
|
|
+++ make/linux/Makefile Mon Mar 27 19:05:00 2006
|
|
@@ -16,11 +16,11 @@ prefix=/boot/home/config
|
|
else
|
|
prefix=/usr/local
|
|
endif
|
|
-libdir=$(prefix)/lib
|
|
-includedir=$(prefix)/include/ebml
|
|
+libdir=$(PREFIX)/lib
|
|
+includedir=$(PREFIX)/include/ebml
|
|
|
|
# Programs
|
|
-CXX=g++
|
|
+#CXX=g++
|
|
LD=$(CXX)
|
|
AR = ar rcvu
|
|
RANLIB = ranlib
|
|
@@ -52,7 +52,7 @@ LIBS=
|
|
# Names
|
|
LIBRARY=libebml.a
|
|
LIBRARY_SO=libebml.so
|
|
-LIBRARY_SO_VER=libebml.so.0
|
|
+LIBRARY_SO_VER=libebml.so.${LIBebml_VERSION}
|
|
|
|
# source-files
|
|
sources:=$(wildcard ${SRC_DIR}*$(EXTENSION))
|
|
@@ -94,8 +94,7 @@ $(LIBRARY): $(objects)
|
|
$(RANLIB) $@
|
|
|
|
$(LIBRARY_SO): $(objects_so)
|
|
- $(CXX) -shared -Wl,-soname,$(LIBRARY_SO_VER) -o $(LIBRARY_SO_VER) $(objects_so)
|
|
- ln -s $(LIBRARY_SO_VER) $(LIBRARY_SO)
|
|
+ $(CXX) -shared -Wl,-soname,$(LIBRARY_SO_VER) -o $(LIBRARY_SO_VER) $(objects_so) -fPIC
|
|
|
|
clean:
|
|
rm -f $(objects) $(objects_so)
|
|
@@ -139,7 +138,6 @@ install_staticlib: $(LIBRARY)
|
|
|
|
install_sharedlib: $(LIBRARY_SO)
|
|
$(INSTALL) $(INSTALL_OPTS_LIB) $(LIBRARY_SO_VER) $(libdir)
|
|
- ln -s $(LIBRARY_SO_VER) $(libdir)/$(LIBRARY_SO)
|
|
|
|
|
|
ifneq ($(wildcard .depend),)
|