36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
$OpenBSD: patch-lib_Makefile_elf-lib,v 1.3 2004/06/16 05:04:37 brad Exp $
|
|
--- lib/Makefile.elf-lib.orig 2002-02-24 16:03:59.000000000 -0500
|
|
+++ lib/Makefile.elf-lib 2004-06-16 01:03:10.000000000 -0400
|
|
@@ -23,14 +23,13 @@ ELF_SONAME = $(ELF_IMAGE).so.$(ELF_SO_VE
|
|
|
|
image: $(ELF_LIB)
|
|
|
|
-$(ELF_LIB): $(OBJS)
|
|
- (cd elfshared; $(CC) --shared -o $(ELF_LIB) -Wl,-soname,$(ELF_SONAME) \
|
|
- $(OBJS) $(ELF_OTHER_LIBS))
|
|
+$(ELF_LIB) $(ELF_IMAGE).so: $(OBJS)
|
|
+ (cd elfshared; $(CC) -shared -fPIC -o $(ELF_LIB) \
|
|
+ $(OBJS))
|
|
$(MV) elfshared/$(ELF_LIB) .
|
|
$(RM) -f ../$(ELF_LIB) ../$(ELF_IMAGE).so ../$(ELF_SONAME)
|
|
$(LN) $(ELF_LIB) ../$(ELF_LIB)
|
|
$(LN) ../$(ELF_LIB) ../$(ELF_IMAGE).so
|
|
- $(LN) ../$(ELF_LIB) ../$(ELF_SONAME)
|
|
|
|
installdirs-elf-lib::
|
|
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(ELF_INSTALL_DIR) \
|
|
@@ -40,12 +39,9 @@ installdirs:: installdirs-elf-lib
|
|
|
|
install-shlibs install:: $(ELF_LIB) installdirs-elf-lib
|
|
$(INSTALL_PROGRAM) $(ELF_LIB) $(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_LIB)
|
|
+ $(INSTALL_DATA) $(ELF_IMAGE).a $(DESTDIR)$(ELF_INSTALL_DIR)/
|
|
$(STRIP) --strip-debug \
|
|
$(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_LIB)
|
|
- $(LN_S) -f $(ELF_LIB) $(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_SONAME)
|
|
- $(LN_S) -f $(ELF_INSTALL_DIR)/$(ELF_SONAME) \
|
|
- $(DESTDIR)$(libdir)/$(ELF_IMAGE).so
|
|
- -$(LDCONFIG)
|
|
|
|
uninstall-shlibs uninstall::
|
|
$(RM) -f $(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_LIB) \
|