parent
0c89359eca
commit
83b0ed82dc
@ -1,10 +1 @@
|
|||||||
/mujs-c1ad1ba.tar.gz
|
SOURCES/mujs-1.3.3.tar.gz
|
||||||
/mujs-0827611.tar.gz
|
|
||||||
/mujs-5c337af.tar.gz
|
|
||||||
/mujs-a0ceaf5.tar.gz
|
|
||||||
/mujs-4006739.tar.gz
|
|
||||||
/mujs-25821e6.tar.gz
|
|
||||||
/mujs-1.0.4.tar.gz
|
|
||||||
/1.0.9.tar.gz
|
|
||||||
/mujs-1.2.0.tar.gz
|
|
||||||
/mujs-1.3.2.tar.gz
|
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
b8a9570c37113addaa41b33262fb484c7fe26122 SOURCES/mujs-1.3.3.tar.gz
|
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 021f285..65274f3 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -4,7 +4,7 @@
|
||||||
|
|
||||||
|
default: build/debug/mujs build/debug/mujs-pp
|
||||||
|
|
||||||
|
-SOVERSION = 1
|
||||||
|
+SOVERSION = 0.1
|
||||||
|
|
||||||
|
CFLAGS = -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter
|
||||||
|
|
@ -0,0 +1,61 @@
|
|||||||
|
From b1ed73b72d63c44a2e081abae35c061844adb338 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Alessandro Astone <ales.astone@gmail.com>
|
||||||
|
Date: Fri, 26 Jan 2024 15:08:12 +0100
|
||||||
|
Subject: [PATCH] Set library SONAME with version
|
||||||
|
|
||||||
|
---
|
||||||
|
Makefile | 13 ++++++++++---
|
||||||
|
1 file changed, 10 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 95ccdc3..a646f76 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -4,6 +4,8 @@
|
||||||
|
|
||||||
|
default: build/debug/mujs build/debug/mujs-pp
|
||||||
|
|
||||||
|
+SOVERSION = 1
|
||||||
|
+
|
||||||
|
CFLAGS = -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter
|
||||||
|
|
||||||
|
OPTIM = -O3
|
||||||
|
@@ -84,7 +86,8 @@ build/sanitize/mujs: main.c one.c $(SRCS) $(HDRS)
|
||||||
|
|
||||||
|
build/debug/libmujs.$(SO): one.c $(SRCS) $(HDRS)
|
||||||
|
@mkdir -p $(@D)
|
||||||
|
- $(CC) $(CFLAGS) -g -fPIC -shared -o $@ one.c -lm
|
||||||
|
+ $(CC) $(CFLAGS) -g -fPIC -shared -Wl,-soname,libmujs.so.$(SOVERSION) -o $@.$(SOVERSION) one.c -lm
|
||||||
|
+ ln -sf libmujs.so.$(SOVERSION) $@
|
||||||
|
build/debug/libmujs.o: one.c $(SRCS) $(HDRS)
|
||||||
|
@mkdir -p $(@D)
|
||||||
|
$(CC) $(CFLAGS) -g -c -o $@ one.c
|
||||||
|
@@ -97,7 +100,8 @@ build/debug/mujs-pp: pp.c build/debug/libmujs.o
|
||||||
|
|
||||||
|
build/release/libmujs.$(SO): one.c $(SRCS) $(HDRS)
|
||||||
|
@mkdir -p $(@D)
|
||||||
|
- $(CC) $(CFLAGS) $(OPTIM) -fPIC -shared -o $@ one.c -lm
|
||||||
|
+ $(CC) $(CFLAGS) $(OPTIM) -fPIC -shared -Wl,-soname,libmujs.so.$(SOVERSION) -o $@.$(SOVERSION) one.c -lm
|
||||||
|
+ ln -sf libmujs.so.$(SOVERSION) $@
|
||||||
|
build/release/libmujs.o: one.c $(SRCS) $(HDRS)
|
||||||
|
@mkdir -p $(@D)
|
||||||
|
$(CC) $(CFLAGS) $(OPTIM) -c -o $@ one.c
|
||||||
|
@@ -131,7 +135,9 @@ install-static: install-common build/release/libmujs.a
|
||||||
|
install -m 644 build/release/libmujs.a $(DESTDIR)$(libdir)
|
||||||
|
|
||||||
|
install-shared: install-common build/release/libmujs.$(SO)
|
||||||
|
- install -m 755 build/release/libmujs.$(SO) $(DESTDIR)$(libdir)
|
||||||
|
+ install -m 755 build/release/libmujs.$(SO).$(SOVERSION) $(DESTDIR)$(libdir)
|
||||||
|
+ cp -af build/release/libmujs.$(SO) $(DESTDIR)$(libdir)
|
||||||
|
+ chmod 755 $(DESTDIR)$(libdir)
|
||||||
|
|
||||||
|
install: install-static
|
||||||
|
|
||||||
|
@@ -142,6 +148,7 @@ uninstall:
|
||||||
|
rm -f $(DESTDIR)$(libdir)/pkgconfig/mujs.pc
|
||||||
|
rm -f $(DESTDIR)$(libdir)/libmujs.a
|
||||||
|
rm -f $(DESTDIR)$(libdir)/libmujs.$(SO)
|
||||||
|
+ rm -f $(DESTDIR)$(libdir)/libmujs.$(SO).$(SOVERSION)
|
||||||
|
|
||||||
|
tarball:
|
||||||
|
git archive --format=zip --prefix=mujs-$(VERSION)/ HEAD > mujs-$(VERSION).zip
|
Loading…
Reference in new issue