mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
https://sourceforge.net/p/slimdata/bugs/11/
|
|
--- src/Makefile.in.orig 2016-09-16 11:12:12.000000000 -0500
|
|
+++ src/Makefile.in 2016-11-28 13:55:08.000000000 -0600
|
|
@@ -15,6 +15,8 @@
|
|
CXX = @CXX@
|
|
CPP = @CPP@
|
|
INSTALL = @INSTALL@
|
|
+prefix = @prefix@
|
|
+exec_prefix = @exec_prefix@
|
|
srcdir = @srcdir@
|
|
|
|
CFLAGS := @CFLAGS@ $(OPT) -Wall -fPIC
|
|
@@ -101,16 +103,16 @@
|
|
$(STATIC_LIBRARY): $(OBJS)
|
|
$(AR) rc $@ $(OBJS)
|
|
|
|
-# Mac osX versus linux options for installing SONAME in the library:
|
|
+# macOS versus Linux options for compiling the library and specifying the SONAME:
|
|
sysname := $(shell uname -s)
|
|
ifeq ($(sysname), Darwin)
|
|
- SO_OPTIONS = -Wl,-dylib_install_name -Wl,$(SONAME)
|
|
+ SO_OPTIONS = -dynamiclib -Wl,-dylib_install_name -Wl,@libdir@/$(SONAME)
|
|
else
|
|
- SO_OPTIONS = -Wl,-soname,$(SONAME)
|
|
+ SO_OPTIONS = -shared -Wl,-soname,$(SONAME)
|
|
endif
|
|
|
|
$(SO_LIBRARY): $(OBJS) Makefile
|
|
- $(LINK.o) -shared $(SO_OPTIONS) -o $@.0.0 $(OBJS) $(SOLIBS)
|
|
+ $(LINK.o) $(SO_OPTIONS) -o $@.0.0 $(OBJS) $(SOLIBS)
|
|
ln -f $@.0.0 $@
|
|
ln -f $@.0.0 $@.0
|
|
|