Skip to content

Commit

Permalink
debian: revert libre.so.0 suffix (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh authored Mar 4, 2020
1 parent 1795f26 commit 1d19127
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
1 change: 0 additions & 1 deletion debian/libre-dev.files
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
usr/include
usr/lib/libre.a
usr/lib/libre.so
usr/share/re
2 changes: 1 addition & 1 deletion debian/libre.files
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/usr/lib/libre.so.*
/usr/lib/libre.so
12 changes: 4 additions & 8 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


EXTRA_CFLAGS:="$(shell dpkg-buildflags --get CFLAGS | sed -e 's/-O2//')"
EXTRA_LFLAGS:="$(shell dpkg-buildflags --get LDFLAGS) -Wl,-soname,libre.so.0"
EXTRA_LFLAGS:="$(shell dpkg-buildflags --get LDFLAGS) -Wl,-soname,libre.so"


configure: configure-stamp
Expand All @@ -28,8 +28,7 @@ build-stamp: configure-stamp
# Add here commands to compile the package.
$(MAKE) RELEASE=1 \
EXTRA_CFLAGS=$(EXTRA_CFLAGS) \
EXTRA_LFLAGS=$(EXTRA_LFLAGS) \
LIB_SUFFIX=.so.0
EXTRA_LFLAGS=$(EXTRA_LFLAGS)

touch $@

Expand All @@ -39,7 +38,7 @@ clean:
rm -f build-stamp configure-stamp

# Add here commands to clean up after the build process.
$(MAKE) LIB_SUFFIX=.so.0 clean
$(MAKE) clean

dh_clean

Expand All @@ -51,10 +50,7 @@ install: build

# Add here commands to install the package into debian/tmp
mkdir $(CURDIR)/debian/tmp
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp \
LIB_SUFFIX=.so.0

cd $(CURDIR)/debian/tmp/usr/lib && ln -s -f libre.so.0 libre.so
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp

dh_movefiles

Expand Down

0 comments on commit 1d19127

Please sign in to comment.