aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNishanth Aravamudan <nacc@us.ibm.com>2007-07-16 13:02:10 -0700
committerNishanth Aravamudan <nacc@us.ibm.com>2007-07-16 13:02:10 -0700
commit9cf6a8b4f7d98e5964c78a4b3279d666567259e4 (patch)
tree7f5369eddddc77e2f4be121d09516d7d73e7db4a /Makefile
parent611685eae6f8678c4690c6406ee22f29256a0584 (diff)
downloadlibhugetlbfs-9cf6a8b4f7d98e5964c78a4b3279d666567259e4.tar.gz
Makefile: fix-up recent cleanup
$@ in the libhugetlbfs.so lines refers to the matching symbol, which in this case is "obj32/libhugetlbfs.so" or "obj64/libhugetlbfs.so". This breaks just about everything when the soname uses $@ directly. Instead use $(notdir $@) to extract only the file part. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9bae027..b832772 100644
--- a/Makefile
+++ b/Makefile
@@ -188,11 +188,11 @@ obj64/libhugetlbfs.a: $(LIBOBJS64)
obj32/libhugetlbfs.so: $(LIBOBJS32)
@$(VECHO) LD32 "(shared)" $@
- $(CC32) $(LDFLAGS) -Wl,-soname,$@ -shared -o $@ $^ $(LDLIBS)
+ $(CC32) $(LDFLAGS) -Wl,-soname,$(notdir $@) -shared -o $@ $^ $(LDLIBS)
obj64/libhugetlbfs.so: $(LIBOBJS64)
@$(VECHO) LD64 "(shared)" $@
- $(CC64) $(LDFLAGS) -Wl,-soname,$@ -shared -o $@ $^ $(LDLIBS)
+ $(CC64) $(LDFLAGS) -Wl,-soname,$(notdir $@) -shared -o $@ $^ $(LDLIBS)
obj32/%.i: %.c
@$(VECHO) CPP $@