summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-11-10 11:46:40 -0500
committermidipix <writeonce@midipix.org>2018-11-10 20:52:46 -0500
commit52c6363c0bb62965ee722ea02979ae5e8ccf8963 (patch)
tree6fac4bd2b9b28f3ae2b5f30cad93f1bfc2015f5e
parent447984d3ed416b98cfd3e2f12e920c88c52b6505 (diff)
downloadpemagine-52c6363c0bb62965ee722ea02979ae5e8ccf8963.tar.bz2
pemagine-52c6363c0bb62965ee722ea02979ae5e8ccf8963.tar.xz
build system: host flavors: support suffixed library extensions.
'cause you cannot eat your Apfel and eat it two.
-rw-r--r--Makefile.in2
-rw-r--r--sofort/defs.mk4
-rw-r--r--sysinfo/os/any-os.mk4
-rw-r--r--sysinfo/os/cygwin.mk4
-rw-r--r--sysinfo/os/midipix.mk4
-rw-r--r--sysinfo/os/mingw.mk4
-rw-r--r--sysinfo/os/msys.mk4
7 files changed, 23 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 917d875..abe70c5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -135,7 +135,7 @@ src/%.lo: $(SOURCE_DIR)/src/%.c $(ALL_HEADERS) host.tag tree.tag
src/%.o: $(SOURCE_DIR)/src/%.c $(ALL_HEADERS) host.tag tree.tag
$(CC) -c -o $@ $< $(CFLAGS_STATIC)
-lib/%$(OS_LIB_SUFFIX)$(VER_XYZ):
+lib/%$(OS_LIB_PREFIXED_SUFFIX)$(VER_XYZ)$(OS_LIB_SUFFIXED_SUFFIX):
$(CC) -shared -o $@ $^ $(LDFLAGS_SHARED)
lib/%$(OS_ARCHIVE_EXT):
diff --git a/sofort/defs.mk b/sofort/defs.mk
index 2fbc41b..151bc3d 100644
--- a/sofort/defs.mk
+++ b/sofort/defs.mk
@@ -17,8 +17,8 @@ STATIC_OBJS = $(COMMON_OBJS) $(ARCH_OBJS)
STATIC_LIB_NAME = $(OS_LIB_PREFIX)$(PACKAGE)$(OS_ARCHIVE_EXT)
STATIC_LIB = lib/$(STATIC_LIB_NAME)
-DSO_VER = $(OS_LIB_PREFIX)$(PACKAGE)$(OS_LIB_SUFFIX)$(VER_XYZ)
-DSO_SONAME = $(OS_LIB_PREFIX)$(PACKAGE)$(OS_LIB_SUFFIX)$(VER_SONAME)
+DSO_VER = $(OS_LIB_PREFIX)$(PACKAGE)$(OS_LIB_PREFIXED_SUFFIX)$(VER_XYZ)$(OS_LIB_SUFFIXED_SUFFIX)
+DSO_SONAME = $(OS_LIB_PREFIX)$(PACKAGE)$(OS_LIB_PREFIXED_SUFFIX)$(VER_SONAME)$(OS_LIB_SUFFIXED_SUFFIX)
DSO_SOLINK = $(OS_LIB_PREFIX)$(PACKAGE)$(OS_LIB_SUFFIX)
SHARED_LIB = lib/$(DSO_VER)
diff --git a/sysinfo/os/any-os.mk b/sysinfo/os/any-os.mk
index cf8ec00..6c5a2af 100644
--- a/sysinfo/os/any-os.mk
+++ b/sysinfo/os/any-os.mk
@@ -10,3 +10,7 @@ OS_SONAME = symlink
OS_BINFMT = ELF
.PHONY: $(IMPLIB_DEF) $(IMPLIB_VER) $(IMPLIB_SONAME) $(IMPLIB_SOLINK)
+
+# dso suffix notation
+OS_LIB_PREFIXED_SUFFIX = $(OS_LIB_SUFFIX)
+OS_LIB_SUFFIXED_SUFFIX =
diff --git a/sysinfo/os/cygwin.mk b/sysinfo/os/cygwin.mk
index 21cb1a1..290aa0d 100644
--- a/sysinfo/os/cygwin.mk
+++ b/sysinfo/os/cygwin.mk
@@ -11,3 +11,7 @@ OS_BINFMT = PE
OS_IMPLIB_TOOL = dlltool
CFLAGS_PIC =
+
+# dso suffix notation
+OS_LIB_PREFIXED_SUFFIX = $(OS_LIB_SUFFIX)
+OS_LIB_SUFFIXED_SUFFIX =
diff --git a/sysinfo/os/midipix.mk b/sysinfo/os/midipix.mk
index b2d7096..d23d387 100644
--- a/sysinfo/os/midipix.mk
+++ b/sysinfo/os/midipix.mk
@@ -9,3 +9,7 @@ OS_ARCHIVE_EXT = .a
OS_SONAME = symlink
OS_BINFMT = PE
OS_IMPLIB_TOOL = mdso
+
+# dso suffix notation
+OS_LIB_PREFIXED_SUFFIX = $(OS_LIB_SUFFIX)
+OS_LIB_SUFFIXED_SUFFIX =
diff --git a/sysinfo/os/mingw.mk b/sysinfo/os/mingw.mk
index 53fe2d6..1a352ba 100644
--- a/sysinfo/os/mingw.mk
+++ b/sysinfo/os/mingw.mk
@@ -12,3 +12,7 @@ OS_IMPLIB_TOOL = dlltool
CFLAGS_PIC =
CFLAGS_OS += -U__STRICT_ANSI__
+
+# dso suffix notation
+OS_LIB_PREFIXED_SUFFIX = $(OS_LIB_SUFFIX)
+OS_LIB_SUFFIXED_SUFFIX =
diff --git a/sysinfo/os/msys.mk b/sysinfo/os/msys.mk
index 27482e0..70fcd68 100644
--- a/sysinfo/os/msys.mk
+++ b/sysinfo/os/msys.mk
@@ -12,3 +12,7 @@ OS_IMPLIB_TOOL = dlltool
CFLAGS_PIC =
CFLAGS_OS += -U__STRICT_ANSI__
+
+# dso suffix notation
+OS_LIB_PREFIXED_SUFFIX = $(OS_LIB_SUFFIX)
+OS_LIB_SUFFIXED_SUFFIX =