diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-libs/libpdb/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-libs/libpdb/files')
-rw-r--r-- | sci-libs/libpdb/files/libpdb-991112-dynlib+flags.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/sci-libs/libpdb/files/libpdb-991112-dynlib+flags.patch b/sci-libs/libpdb/files/libpdb-991112-dynlib+flags.patch new file mode 100644 index 000000000000..72048b684a93 --- /dev/null +++ b/sci-libs/libpdb/files/libpdb-991112-dynlib+flags.patch @@ -0,0 +1,46 @@ + Makefile | 17 +++++++++++------ + 1 file changed, 11 insertions(+), 6 deletions(-) + +diff --git a/Makefile b/Makefile +index 760a427..de7e724 100644 +--- a/Makefile ++++ b/Makefile +@@ -8,16 +8,16 @@ + # RANLIB should be ':' + # + SHELL = /bin/sh +-RANLIB = : ++#RANLIB = : + NOTHING = + LINTOPT = -o $(NOTHING) + + OPT = -O -g + DEBUG = +-CFLAGS = $(OPT) $(DEBUG) ++CFLAGS += -fPIC + LIBRARY = pdb + +-LIBARCH = lib$(LIBRARY).a ++LIBARCH = lib$(LIBRARY) + LINTLIB = llib-l$(LIBRARY).ln + OBJS = pdb_read.o pdb_sprntf.o pdb_sscanf.o pdb_write.o pdbrun.o ms.o + SRCS = pdb_read.c pdb_sprntf.c pdb_sscanf.c pdb_write.c pdbrun.c ms.c +@@ -27,10 +27,15 @@ all: $(LIBARCH) $(LINTLIB) + install: $(LIBARCH) + install -F /usr/local/lib $(LIBARCH) + +-$(LIBARCH): $(OBJS) ++$(LIBARCH).so: $(OBJS) ++ $(CC) $(LDFLAGS) -shared -Wl,--soname,libpdb.so.0 -o libpdb.so.0.1 $(OBJS) ++ ln -sf libpdb.so.0.1 libpdb.so.0 ++ ln -sf libpdb.so.0.1 libpdb.so ++ ++$(LIBARCH).a: $(OBJS) + @echo "Loading $(LIBARCH) ... " +- @ar cru $(LIBARCH) $(OBJS) +- @$(RANLIB) $(LIBARCH) ++ $(AR) cru $@ $(OBJS) ++ $(RANLIB) $@ + @echo "done" + + $(LINTLIB): $(SRCS) $(HDRS) |