Permalink
Browse files

added soname for linux compilations

  • Loading branch information...
gdabah committed Nov 8, 2018
1 parent d411a87 commit 1e25a8a4abb6148d79dbc71a0e83fd17c1b0c5a5
Showing with 12 additions and 5 deletions.
  1. +6 −1 make/linux/Makefile
  2. +6 −4 setup.py
@@ -8,6 +8,11 @@ CC = gcc
CFLAGS += -fPIC -O2 -Wall -DSUPPORT_64BIT_OFFSET -DDISTORM_STATIC
LDFLAGS += -shared
PREFIX = /usr/local
# The lib SONAME version:
LIB_S_VERSION = 3
# The lib real version:
LIB_R_VERSION = 3.3.4
CFLAGS += -Wl,-soname=${TARGET}.${LIB_S_VERSION}
DESTDIR =
all: clib
@@ -16,7 +21,7 @@ clean:
/bin/rm -rf ../../src/*.o ${TARGET} ../../distorm3.a ./../*.o
clib: ${COBJS}
${CC} ${CFLAGS} ${VERSION} ${COBJS} ${LDFLAGS} -o ${TARGET}
${CC} ${CFLAGS} ${VERSION} ${COBJS} ${LDFLAGS} ${SONAME} -o ${TARGET}
ar rs ../../distorm3.a ${COBJS}
install: libdistorm3.so
@@ -222,7 +222,8 @@ def main():
include_dirs=['src', 'include'],
extra_compile_args=['-fPIC', '-O2', '-Wall',
'-DSUPPORT_64BIT_OFFSET',
'-DDISTORM_STATIC']))]
'-DDISTORM_STATIC',
'-Wl,-soname,libdistorm3.so.3']))]
else:
libraries = [(
'distorm3', dict(
@@ -231,7 +232,8 @@ def main():
include_dirs=['src', 'include'],
extra_compile_args=['-fPIC', '-O2', '-Wall',
'-DSUPPORT_64BIT_OFFSET',
'-DDISTORM_STATIC']))]
'-DDISTORM_STATIC',
'-Wl,-soname,libdistorm3.so.3']))]
options = {
@@ -260,9 +262,9 @@ def main():
'Python bindings by Mario Vilas (mvilas@gmail.com)'
),
'author' : 'Gil Dabah',
'author_email' : 'distorm'+chr(64)+'gmail'+chr(0x2e)+'com',
'author_email' : 'distorm@gmail.com',
'maintainer' : 'Gil Dabah',
'maintainer_email' : 'distorm'+chr(64)+'gmail'+chr(0x2e)+'com',
'maintainer_email' : 'distorm@gmail.com',
'url' : 'https://github.com/gdabah/distorm/',
'download_url' : 'https://github.com/gdabah/distorm/',
'platforms' : ['cygwin', 'win', 'linux', 'macosx'],

0 comments on commit 1e25a8a

Please sign in to comment.