diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-28 20:22:55 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-28 20:22:55 +0000 |
commit | 43c06e94319d29d8d1156c07c16c9d3be4b25588 (patch) | |
tree | 302e901b87eb864a8d8236ec2956cc68528eb097 | |
parent | d9a32e1f04b531bd2eeac38e3090ca188cc52503 (diff) |
(HURDLIBS-libs, HURDLIBS-files): Fix; don't use buggy patsubst.
-rw-r--r-- | Makeconf | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -151,13 +151,11 @@ LDFLAGS += -static # a variable above with the complete file name to find it. # Yippee! A use for computed variable references! ifeq ($(filter-out -static,$(LDFLAGS)),$(LDFLAGS)) -HURDLIBS-files := $(patsubst lib%,../lib%/lib%.so,$(HURDLIBS)) +HURDLIBS-files := $(foreach lib,$(HURDLIBS), ../$(lib)/$(lib).a) else -HURDLIBS-files := $(patsubst lib%,../lib%/lib%.a,$(HURDLIBS)) +HURDLIBS-files := $(foreach lib,$(HURDLIBS), ../$(lib)/$(lib).so) endif -HURDLIBS-libs := $(foreach lib,$(HURDLIBS-files), \ - -L$(dir $(lib)) \ - $(patsubst lib%.a,-l%,$(notdir $(lib)))) +HURDLIBS-libs := $(foreach lib,$(HURDLIBS), -L../$(lib) -l$(lib)) # Building the target ifeq ($(doinst),one) |