openbsd-ports/net/freeradius/patches/patch-src_modules_rules_mak

25 lines
1.1 KiB
Plaintext

$OpenBSD: patch-src_modules_rules_mak,v 1.5 2008/12/29 19:17:36 rui Exp $
--- src/modules/rules.mak.orig Fri Dec 5 16:37:56 2008
+++ src/modules/rules.mak Sun Dec 28 00:26:20 2008
@@ -115,9 +115,9 @@ build-module: $(TARGET).la $(RLM_UTILS)
done
$(TARGET).la: $(LT_OBJS)
- $(LIBTOOL) --mode=link $(CC) -release $(RADIUSD_VERSION) \
+ $(LIBTOOL) --mode=link $(CC) -avoid-version \
-module $(LINK_MODE) $(LDFLAGS) $(RLM_LDFLAGS) -o $@ \
- -rpath $(libdir) $^ $(LIBRADIUS) $(RLM_LIBS) $(LIBS)
+ -rpath $(libdir)/freeradius $^ $(LIBRADIUS) $(RLM_LIBS) $(LIBS)
#######################################################################
#
@@ -164,7 +164,5 @@ install:
@[ "x$(RLM_INSTALL)" = "x" ] || $(MAKE) $(MFLAGS) $(RLM_INSTALL)
if [ "x$(TARGET)" != "x" ]; then \
$(LIBTOOL) --mode=install $(INSTALL) -c \
- $(TARGET).la $(R)$(libdir)/$(TARGET).la || exit $$?; \
- rm -f $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la; \
- ln -s $(TARGET).la $(R)$(libdir)/$(TARGET)-$(RADIUSD_VERSION).la || exit $$?; \
+ $(TARGET).la $(R)$(libdir)/freeradius/$(TARGET).la || exit $$?; \
fi