aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2014-09-24 14:19:24 +0100
committerDavid Howells <dhowells@redhat.com>2014-09-24 14:19:24 +0100
commitd83b9b827c6c4bc2377dfa073cf5c837b87465e8 (patch)
treefdfc2ffe54ae7c5845daa6ecd1fabef14305c8a0
parent8823736faf5055aa471956c0d97c0f06968a2137 (diff)
downloadkeyutils-d83b9b827c6c4bc2377dfa073cf5c837b87465e8.tar.gz
Define LN as it isn't defined by make and use $(LNS) for a couple of ln -sf
Define LN as it isn't defined by make, but LNS is now defined in terms of it. Also, use $(LNS) for a couple of "ln -sf" commands. Signed-off-by: David Howells <dhowells@redhat.com>
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index c678744..5395c0b 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@ MAN5 := $(MANDIR)/man5
MAN7 := $(MANDIR)/man7
MAN8 := $(MANDIR)/man8
INCLUDEDIR := /usr/include
+LN := ln
LNS := $(LN) -sf
###############################################################################
@@ -121,10 +122,10 @@ endif
ifeq ($(NO_SOLIB),0)
all: $(DEVELLIB)
$(DEVELLIB): $(SONAME)
- ln -sf $< $@
+ $(LNS) $< $@
$(SONAME): $(LIBNAME)
- ln -sf $< $@
+ $(LNS) $< $@
LIBVERS := -shared -Wl,-soname,$(SONAME) -Wl,--version-script,version.lds