20d77eacd0
options. - regen patches. - bump PKGNAME. spotted by and initial diff martin@; ok naddy@ alek@
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
$OpenBSD: patch-lib_Makefile_elf-lib,v 1.4 2006/02/20 16:51:46 aanriot Exp $
|
|
--- lib/Makefile.elf-lib.orig Sun Feb 24 22:03:59 2002
|
|
+++ lib/Makefile.elf-lib Sun Feb 19 17:20:00 2006
|
|
@@ -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,7 @@ installdirs:: installdirs-elf-lib
|
|
|
|
install-shlibs install:: $(ELF_LIB) installdirs-elf-lib
|
|
$(INSTALL_PROGRAM) $(ELF_LIB) $(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_LIB)
|
|
- $(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)
|
|
+ $(INSTALL_DATA) $(ELF_IMAGE).a $(DESTDIR)$(ELF_INSTALL_DIR)/
|
|
|
|
uninstall-shlibs uninstall::
|
|
$(RM) -f $(DESTDIR)$(ELF_INSTALL_DIR)/$(ELF_LIB) \
|