summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-10-12 16:12:36 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-10-12 16:12:36 +0000
commit3a7ac9c7a7b4d6181d3cd70a9cb85d93a1938238 (patch)
treef87aedb508cd30ff8d50b75dbe832d34ac5dad85
parentb0c8130cec05f40ce926058d18fbc520b1a0e856 (diff)
Rewrote almost all Makefiles: do not use strip $(x),y; run strip on all objects at once; use :=//$</$^; use CRT_SRC/CRT_OBJ/SCRT_OBJ/CSRC/COBJ/SSRC/SOBJ/MSRC/MOBJ where no more is needed, if only CSRC is present use OBJS directly instead of COBJ; CTOR_TARGETS are created directly in lib; remove unused/unneeded parts. Hope I haven't broken too much.
-rw-r--r--Makefile57
-rw-r--r--Rules.mak8
-rw-r--r--extra/locale/Makefile2
-rw-r--r--ldso/Makefile2
-rw-r--r--ldso/ldso/Makefile18
-rw-r--r--ldso/libdl/Makefile6
-rw-r--r--libc/Makefile4
-rw-r--r--libc/inet/Makefile47
-rw-r--r--libc/inet/rpc/Makefile30
-rw-r--r--libc/misc/Makefile15
-rw-r--r--libc/misc/assert/Makefile15
-rw-r--r--libc/misc/ctype/Makefile19
-rw-r--r--libc/misc/dirent/Makefile16
-rw-r--r--libc/misc/error/Makefile15
-rw-r--r--libc/misc/file/Makefile19
-rw-r--r--libc/misc/fnmatch/Makefile15
-rw-r--r--libc/misc/ftw/Makefile17
-rw-r--r--libc/misc/glob/Makefile15
-rw-r--r--libc/misc/gnu/Makefile15
-rw-r--r--libc/misc/internals/Makefile22
-rw-r--r--libc/misc/intl/Makefile17
-rw-r--r--libc/misc/locale/Makefile20
-rw-r--r--libc/misc/mntent/Makefile15
-rw-r--r--libc/misc/pthread/Makefile19
-rw-r--r--libc/misc/regex/Makefile15
-rw-r--r--libc/misc/search/Makefile36
-rw-r--r--libc/misc/statfs/Makefile18
-rw-r--r--libc/misc/syslog/Makefile17
-rw-r--r--libc/misc/sysvipc/Makefile46
-rw-r--r--libc/misc/time/Makefile22
-rw-r--r--libc/misc/ttyent/Makefile15
-rw-r--r--libc/misc/utmp/Makefile15
-rw-r--r--libc/misc/wchar/Makefile22
-rw-r--r--libc/misc/wctype/Makefile15
-rw-r--r--libc/misc/wordexp/Makefile15
-rw-r--r--libc/pwd_grp/Makefile25
-rw-r--r--libc/signal/Makefile15
-rw-r--r--libc/stdio/Makefile31
-rw-r--r--libc/stdlib/Makefile47
-rw-r--r--libc/stdlib/malloc-simple/Makefile15
-rw-r--r--libc/stdlib/malloc-standard/Makefile24
-rw-r--r--libc/stdlib/malloc/Makefile15
-rw-r--r--libc/string/Makefile28
-rw-r--r--libc/string/arm/Makefile17
-rw-r--r--libc/string/frv/Makefile17
-rw-r--r--libc/string/generic/Makefile18
-rw-r--r--libc/string/i386/Makefile19
-rw-r--r--libc/string/mips/Makefile17
-rw-r--r--libc/string/powerpc/Makefile19
-rw-r--r--libc/string/sh64/Makefile17
-rw-r--r--libc/string/sparc/Makefile23
-rw-r--r--libc/string/x86_64/Makefile23
-rw-r--r--libc/sysdeps/linux/alpha/Makefile57
-rw-r--r--libc/sysdeps/linux/arm/Makefile58
-rw-r--r--libc/sysdeps/linux/bfin/Makefile57
-rw-r--r--libc/sysdeps/linux/common/Makefile23
-rw-r--r--libc/sysdeps/linux/cris/Makefile61
-rw-r--r--libc/sysdeps/linux/e1/Makefile61
-rw-r--r--libc/sysdeps/linux/frv/Makefile47
-rw-r--r--libc/sysdeps/linux/h8300/Makefile60
-rw-r--r--libc/sysdeps/linux/i386/Makefile58
-rw-r--r--libc/sysdeps/linux/i960/Makefile59
-rw-r--r--libc/sysdeps/linux/m68k/Makefile66
-rw-r--r--libc/sysdeps/linux/microblaze/Makefile63
-rw-r--r--libc/sysdeps/linux/mips/Makefile58
-rw-r--r--libc/sysdeps/linux/nios/Makefile56
-rw-r--r--libc/sysdeps/linux/nios2/Makefile59
-rw-r--r--libc/sysdeps/linux/powerpc/Makefile59
-rw-r--r--libc/sysdeps/linux/sh/Makefile58
-rw-r--r--libc/sysdeps/linux/sh64/Makefile61
-rw-r--r--libc/sysdeps/linux/sparc/Makefile52
-rw-r--r--libc/sysdeps/linux/v850/Makefile61
-rw-r--r--libc/sysdeps/linux/x86_64/Makefile58
-rw-r--r--libc/termios/Makefile21
-rw-r--r--libc/unistd/Makefile49
-rw-r--r--libcrypt/Makefile4
-rw-r--r--libintl/Makefile4
-rw-r--r--libm/Makefile18
-rw-r--r--libnsl/Makefile4
-rw-r--r--libpthread/Makefile8
-rw-r--r--libpthread/linuxthreads/Makefile8
-rw-r--r--libpthread/linuxthreads_db/Makefile2
-rw-r--r--libresolv/Makefile4
-rw-r--r--librt/Makefile4
-rw-r--r--libutil/Makefile6
-rw-r--r--utils/Makefile14
86 files changed, 1003 insertions, 1369 deletions
diff --git a/Makefile b/Makefile
index b0a557e48..0b9f782fa 100644
--- a/Makefile
+++ b/Makefile
@@ -31,17 +31,17 @@ include Rules.mak
# need to have libc.so built, before we can build the others
PRE_DIRS = ldso libc
DIRS = ldso libcrypt libresolv libnsl libutil librt
-ifeq ($(strip $(UCLIBC_HAS_FLOATS)),y)
+ifeq ($(UCLIBC_HAS_FLOATS),y)
DIRS += libm
endif
-ifeq ($(strip $(UCLIBC_HAS_THREADS)),y)
+ifeq ($(UCLIBC_HAS_THREADS),y)
DIRS += libpthread
endif
-ifeq ($(strip $(UCLIBC_HAS_GETTEXT_AWARENESS)),y)
+ifeq ($(UCLIBC_HAS_GETTEXT_AWARENESS),y)
DIRS += libintl
endif
-ifeq ($(strip $(HAVE_DOT_CONFIG)),y)
+ifeq ($(HAVE_DOT_CONFIG),y)
all: finished
@@ -66,7 +66,7 @@ include/bits/uClibc_config.h: .config
# in order to generate the headers correctly :(. That
# means we can't use the $(HOSTCC) in order to get the
# correct output.
-ifeq ($(strip $(ARCH_HAS_MMU)),y)
+ifeq ($(ARCH_HAS_MMU),y)
export header_extra_args =
else
export header_extra_args = -n
@@ -105,7 +105,7 @@ headers: include/bits/uClibc_config.h
else \
mv -f include/bits/sysnum.h.new include/bits/sysnum.h; \
fi
-ifeq ($(strip $(UCLIBC_HAS_THREADS)),y)
+ifeq ($(UCLIBC_HAS_THREADS),y)
$(MAKE) -C libpthread headers
endif
$(MAKE) -C libc/sysdeps/linux/common headers
@@ -117,13 +117,13 @@ WGET:=wget --passive-ftp
LOCALE_DATA_FILENAME:=uClibc-locale-030818.tgz
pregen: headers
-ifeq ($(strip $(UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA)),y)
+ifeq ($(UCLIBC_DOWNLOAD_PREGENERATED_LOCALE_DATA),y)
(cd extra/locale; \
if [ ! -f $(LOCALE_DATA_FILENAME) ] ; then \
$(WGET) http://www.uclibc.org/downloads/$(LOCALE_DATA_FILENAME) ; \
fi )
endif
-ifeq ($(strip $(UCLIBC_PREGENERATED_LOCALE_DATA)),y)
+ifeq ($(UCLIBC_PREGENERATED_LOCALE_DATA),y)
(cd extra/locale; zcat $(LOCALE_DATA_FILENAME) | tar -xvf -)
$(MAKE) -C extra/locale pregen
endif
@@ -155,7 +155,7 @@ install_headers:
tar -chf - include --exclude .svn --exclude CVS $$extra_exclude \
| tar -xf - -C $(PREFIX)$(DEVEL_PREFIX)
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/ssp-internal.h
-ifneq ($(strip $(UCLIBC_HAS_FLOATS)),y)
+ifneq ($(UCLIBC_HAS_FLOATS),y)
# Remove floating point related headers since float support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/complex.h
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/fpu_control.h
@@ -164,57 +164,57 @@ ifneq ($(strip $(UCLIBC_HAS_FLOATS)),y)
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/tgmath.h
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/bits/uClibc_fpmax.h
endif
-ifneq ($(strip $(UCLIBC_HAS_WCHAR)),y)
+ifneq ($(UCLIBC_HAS_WCHAR),y)
# Remove wide char headers since wide char support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/wctype.h
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/wchar.h
endif
-ifneq ($(strip $(UCLIBC_HAS_LOCALE)),y)
+ifneq ($(UCLIBC_HAS_LOCALE),y)
# Remove iconv header since locale support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/iconv.h
endif
-ifneq ($(strip $(UCLIBC_HAS_GLIBC_CUSTOM_PRINTF)),y)
+ifneq ($(UCLIBC_HAS_GLIBC_CUSTOM_PRINTF),y)
# Remove printf header since custom print specifier support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/printf.h
endif
-ifneq ($(strip $(UCLIBC_HAS_XLOCALE)),y)
+ifneq ($(UCLIBC_HAS_XLOCALE),y)
# Remove xlocale header since extended locale support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/xlocale.h
endif
-ifneq ($(strip $(UCLIBC_HAS_GETTEXT_AWARENESS)),y)
+ifneq ($(UCLIBC_HAS_GETTEXT_AWARENESS),y)
# Remove libintl header since gettext support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/libintl.h
endif
-ifneq ($(strip $(UCLIBC_HAS_REGEX)),y)
+ifneq ($(UCLIBC_HAS_REGEX),y)
# Remove regex headers since regex support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/regex.h
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/regexp.h
endif
-ifneq ($(strip $(UCLIBC_HAS_WORDEXP)),y)
+ifneq ($(UCLIBC_HAS_WORDEXP),y)
# Remove wordexp header since wordexp support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/wordexp.h
endif
-ifneq ($(strip $(UCLIBC_HAS_FTW)),y)
+ifneq ($(UCLIBC_HAS_FTW),y)
# Remove ftw header since ftw support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/ftw.h
endif
-ifneq ($(strip $(UCLIBC_HAS_GLOB)),y)
+ifneq ($(UCLIBC_HAS_GLOB),y)
# Remove glob header since glob support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/glob.h
endif
-ifneq ($(strip $(UCLIBC_HAS_GNU_GETOPT)),y)
+ifneq ($(UCLIBC_HAS_GNU_GETOPT),y)
# Remove getopt header since gnu getopt support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/getopt.h
endif
-ifneq ($(strip $(HAS_SHADOW)),y)
+ifneq ($(HAS_SHADOW),y)
# Remove shadow header since shadow password support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/shadow.h
endif
-ifneq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y)
+ifneq ($(PTHREADS_DEBUG_SUPPORT),y)
# Remove thread_db header since thread debug support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/thread_db.h
endif
-ifneq ($(strip $(UCLIBC_HAS_THREADS)),y)
+ifneq ($(UCLIBC_HAS_THREADS),y)
# Remove pthread headers since thread support is disabled.
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/*thread*.h
$(RM) $(PREFIX)$(DEVEL_PREFIX)include/semaphore.h
@@ -230,7 +230,7 @@ endif
install_dev: install_headers
$(INSTALL) -d $(PREFIX)$(DEVEL_PREFIX)lib
-$(INSTALL) -m 644 lib/*.[ao] $(PREFIX)$(DEVEL_PREFIX)lib/
-ifeq ($(strip $(HAVE_SHARED)),y)
+ifeq ($(HAVE_SHARED),y)
for i in `find lib/ -type l -name 'lib[a-zA-Z]*.so' | \
sed -e 's/lib\///'` ; do \
$(LN) -sf $(RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB)$$i.$(MAJOR_VERSION) \
@@ -240,7 +240,7 @@ ifeq ($(strip $(HAVE_SHARED)),y)
$(RM) $(PREFIX)$(DEVEL_PREFIX)lib/libc.so; \
sed -e '/^GROUP/d' $(TOPDIR)lib/libc.so > $(PREFIX)$(DEVEL_PREFIX)lib/libc.so; \
fi
-ifeq ($(strip $(COMPAT_ATEXIT)),y)
+ifeq ($(COMPAT_ATEXIT),y)
if [ -f $(TOPDIR)lib/libc.so -a -f $(PREFIX)$(RUNTIME_PREFIX)lib/$(SHARED_MAJORNAME) ] ; then \
echo "GROUP ( $(DEVEL_PREFIX)lib/$(NONSHARED_LIBNAME) $(RUNTIME_PREFIX)lib/$(SHARED_MAJORNAME) )" \
>> $(PREFIX)$(DEVEL_PREFIX)lib/libc.so; \
@@ -251,7 +251,7 @@ else
>> $(PREFIX)$(DEVEL_PREFIX)lib/libc.so; \
fi
endif
-ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y)
+ifeq ($(PTHREADS_DEBUG_SUPPORT),y)
$(LN) -sf $(RUNTIME_PREFIX_LIB_FROM_DEVEL_PREFIX_LIB)libthread_db.so.1 \
$(PREFIX)$(DEVEL_PREFIX)lib/libthread_db.so
endif
@@ -267,7 +267,7 @@ endif
# Installs run-time libraries
install_runtime:
-ifeq ($(strip $(HAVE_SHARED)),y)
+ifeq ($(HAVE_SHARED),y)
$(INSTALL) -d $(PREFIX)$(RUNTIME_PREFIX)lib
$(INSTALL) -m 644 lib/lib*-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so \
$(PREFIX)$(RUNTIME_PREFIX)lib
@@ -292,7 +292,7 @@ finished2:
$(SECHO) Finished installing ...
$(SECHO)
-else # ifeq ($(strip $(HAVE_DOT_CONFIG)),y)
+else # ifeq ($(HAVE_DOT_CONFIG),y)
all: menuconfig
@@ -349,6 +349,7 @@ defconfig: extra/config/conf
clean:
@$(RM) -r lib include/bits
$(RM) libc/*.a libc/obj.* libc/nonshared_obj.*
+ $(RM) libc/misc/locale/locale_data.c
$(RM) libc/misc/internals/interp.c
$(RM) ldso/libdl/*.a
$(RM) include/fpu_control.h
@@ -389,7 +390,7 @@ release: distclean
\
tar -cvzf uClibc-$(VERSION).tar.gz uClibc-$(VERSION)/
-endif # ifeq ($(strip $(HAVE_DOT_CONFIG)),y)
+endif # ifeq ($(HAVE_DOT_CONFIG),y)
check:
$(MAKE) -C test
diff --git a/Rules.mak b/Rules.mak
index 4e5189eb3..866febae0 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -184,7 +184,7 @@ ifeq ($(strip $(TARGET_ARCH)),sh)
CPU_CFLAGS-$(ARCH_BIG_ENDIAN)+=-mb
CPU_CFLAGS-$(CONFIG_SH2)+=-m2
CPU_CFLAGS-$(CONFIG_SH3)+=-m3
-ifeq ($(strip $(UCLIBC_HAS_FLOATS)),y)
+ifeq ($(UCLIBC_HAS_FLOATS),y)
CPU_CFLAGS-$(CONFIG_SH2A)+=-m2a
CPU_CFLAGS-$(CONFIG_SH4)+=-m4
else
@@ -266,7 +266,7 @@ XARCH_CFLAGS=$(subst ",, $(strip $(ARCH_CFLAGS)))
CPU_CFLAGS=$(subst ",, $(strip $(CPU_CFLAGS-y)))
LDADD_LIBFLOAT=
-ifeq ($(strip $(UCLIBC_HAS_SOFT_FLOAT)),y)
+ifeq ($(UCLIBC_HAS_SOFT_FLOAT),y)
# Add -msoft-float to the CPU_FLAGS since ldso and libdl ignore CFLAGS.
# If -msoft-float isn't supported, we want an error anyway.
# Hmm... might need to revisit this for arm since it has 2 different
@@ -304,14 +304,14 @@ else
endif
ifeq ($(UCLIBC_HAS_THREADS),y)
-ifeq ($(strip $(UCLIBC_HAS_THREADS_NATIVE)),y)
+ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
PTNAME := nptl
else
PTNAME := linuxthreads
endif
PTDIR := $(TOPDIR)libpthread/$(PTNAME)
# set up system dependencies include dirs (NOTE: order matters!)
-ifeq ($(strip $(UCLIBC_HAS_THREADS_NATIVE)),y)
+ifeq ($(UCLIBC_HAS_THREADS_NATIVE),y)
PTINC := -I$(PTDIR)/compat \
-I$(PTDIR)/sysdeps/unix/sysv/linux/$(TARGET_ARCH) \
-I$(PTDIR)/sysdeps/$(TARGET_ARCH) \
diff --git a/extra/locale/Makefile b/extra/locale/Makefile
index 8fe252875..1fc336d4b 100644
--- a/extra/locale/Makefile
+++ b/extra/locale/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)Rules.mak
CFLAGS_wc8bit=-DCTYPE_PACKED=1
CFLAGS_mmap=
-ifeq ($(strip $(UCLIBC_HAS_WCHAR)),y)
+ifeq ($(UCLIBC_HAS_WCHAR),y)
CFLAGS_wc8bit += -DDO_WIDE_CHAR=1
CFLAGS_mmap += -D__WCHAR_ENABLED=1
endif
diff --git a/ldso/Makefile b/ldso/Makefile
index 07bf63241..48f32602f 100644
--- a/ldso/Makefile
+++ b/ldso/Makefile
@@ -21,7 +21,7 @@ include $(TOPDIR)Rules.mak
DIRS = ldso libdl
-ifeq ($(strip $(BUILD_UCLIBC_LDSO)),y)
+ifeq ($(BUILD_UCLIBC_LDSO),y)
all: subdirs
else
all:
diff --git a/ldso/ldso/Makefile b/ldso/ldso/Makefile
index cf5d07d57..fe356ea50 100644
--- a/ldso/ldso/Makefile
+++ b/ldso/ldso/Makefile
@@ -35,11 +35,11 @@ XXFLAGS+= -DUCLIBC_LDSO=\"$(UCLIBC_LDSO)\" $(XARCH_CFLAGS) $(CPU_CFLAGS) $(PICFL
XXFLAGS+=-isystem $(shell $(CC) -print-file-name=include)
-ifeq ($(strip $(SUPPORT_LD_DEBUG)),y)
+ifeq ($(SUPPORT_LD_DEBUG),y)
XXFLAGS+=-D__SUPPORT_LD_DEBUG__
endif
-ifeq ($(strip $(SUPPORT_LD_DEBUG_EARLY)),y)
+ifeq ($(SUPPORT_LD_DEBUG_EARLY),y)
XXFLAGS+=-D__SUPPORT_LD_DEBUG_EARLY__
endif
@@ -63,7 +63,7 @@ ifeq ($(UCLIBC_BUILD_RELRO),y)
LDFLAGS+=-z relro
endif
-ifneq ($(strip $(SUPPORT_LD_DEBUG)),y)
+ifneq ($(SUPPORT_LD_DEBUG),y)
LDFLAGS+=-s
endif
@@ -72,12 +72,12 @@ SO_LIB_NAME := $(TOPDIR)lib/$(UCLIBC_LDSO)
SO_FULL_NAME := $(LIB_NAME)-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
CSRC := ldso.c
-COBJS := $(patsubst %.c,%.o, $(CSRC))
+COBJ := $(patsubst %.c,%.o, $(CSRC))
-ASRC := $(wildcard $(TARGET_ARCH)/*.S)
-AOBJS := $(patsubst %.S,%.o, $(ASRC))
+SSRC := $(wildcard $(TARGET_ARCH)/*.S)
+SOBJ := $(patsubst %.S,%.o, $(SSRC))
-OBJS := $(AOBJS) $(COBJS)
+OBJS := $(SOBJ) $(COBJ)
all: $(SO_LIB_NAME)
@@ -89,10 +89,10 @@ $(SO_LIB_NAME): $(OBJS)
-o $(TOPDIR)lib/$(SO_FULL_NAME) $^ $(LIBGCC)
$(LN) -sf $(SO_FULL_NAME) $@
-$(COBJS): %.o : %.c
+$(COBJ): %.o : %.c
$(CC) $(XXFLAGS) -c $< -o $@
-$(AOBJS): %.o : %.S
+$(SOBJ): %.o : %.S
$(CC) $(ASFLAGS) -c $< -o $@
clean:
diff --git a/ldso/libdl/Makefile b/ldso/libdl/Makefile
index d31ce256d..eeb7e1a5c 100644
--- a/ldso/libdl/Makefile
+++ b/ldso/libdl/Makefile
@@ -32,7 +32,7 @@ XXFLAGS+= $(XARCH_CFLAGS) $(CPU_CFLAGS) \
-fno-builtin -nostdinc -D_LIBC -I$(TOPDIR)ldso/include -I$(TOPDIR)ldso/ldso -I$(TOPDIR)include
XXFLAGS+=-isystem $(shell $(CC) -print-file-name=include)
-ifeq ($(strip $(SUPPORT_LD_DEBUG)),y)
+ifeq ($(SUPPORT_LD_DEBUG),y)
XXFLAGS+=-D__SUPPORT_LD_DEBUG__
endif
XXFLAGS_NOPIC:=$(XXFLAGS)
@@ -41,7 +41,7 @@ ifeq ($(DOPIC),y)
endif
# BEWARE!!! At least mips* will die if -O0 is used!!!
-ifeq ($(strip $(TARGET_ARCH)),mips)
+ifeq ($(TARGET_ARCH),mips)
XXFLAGS := $(XXFLAGS:-O0=-O1)
endif
@@ -55,7 +55,7 @@ OBJS := libdl.o
PIC_OBJS := libdl_pic.o
# we do not get here, do we need a libdl.a, if ld.so is not ours?
-#ifeq ($(strip $(HAVE_SHARED)),y)
+#ifeq ($(HAVE_SHARED),y)
all: $(AR_LIB_NAME) $(SO_LIB_NAME)
#else
#all: $(AR_LIB_NAME)
diff --git a/libc/Makefile b/libc/Makefile
index 643d5f09e..a5f8954b8 100644
--- a/libc/Makefile
+++ b/libc/Makefile
@@ -43,7 +43,7 @@ AR_LIB_NAME := $(TOPDIR)lib/$(LIB_NAME).a
SO_LIB_NAME = $(TOPDIR)lib/$(LIB_NAME).so
SO_FULL_NAME = libuClibc-$(MAJOR_VERSION).$(MINOR_VERSION).$(SUBLEVEL).so
-ifeq ($(strip $(HAVE_SHARED)),y)
+ifeq ($(HAVE_SHARED),y)
all: $(SO_LIB_NAME)
else
all: $(AR_LIB_NAME)
@@ -98,7 +98,7 @@ $(SO_LIB_NAME): $(AR_LIB_NAME)
echo " * the static library, so try that secondarily. */" >> $@
#OUT_FORMAT:=$(shell $(LD) --verbose | grep OUTPUT_FORMAT | awk -F '"' '{print $2}')
#echo "