From c1b9dc9062d7b13d8151a9d53fea92b7e72c6663 Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Tue, 6 Dec 2016 11:49:41 +0900 Subject: [PATCH] Actually fix warning --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 668758fd..d0092b42 100644 --- a/Makefile +++ b/Makefile @@ -230,7 +230,7 @@ define user-c-rule $1: $2 $(shell util/auto-dep.py --deps $2) $(LIBC) @${BEG} "CCSO" "$$<" @${CC} -o $$@ $(USER_CFLAGS) -shared -fPIC $$(shell util/auto-dep.py --cflags $$<) $$< $$(shell util/auto-dep.py --libs $$<) -lc ${ERRORS} - @if [ "x$(STRIP_LIBS)" -eq "x1" ]; then i686-pc-toaru-strip $$@; fi + @if [ "x$(STRIP_LIBS)" = "x1" ]; then i686-pc-toaru-strip $$@; fi @${END} "CCSO" "$$<" endef $(foreach file,$(USER_LIBFILES),$(eval $(call user-c-rule,$(patsubst %.c,hdd/usr/lib/libtoaru-%.so,$(notdir ${file})),${file}))) @@ -280,7 +280,7 @@ define basic-so-wrapper hdd/usr/lib/lib$(1).so: ${TOOLCHAIN}/lib/lib$(1).a @${BEG} "SO" "$$@" @${CC} -shared -Wl,-soname,lib$(1).so -o hdd/usr/lib/lib$(1).so -Lhdd/usr/lib -Wl,--whole-archive ${TOOLCHAIN}/lib/lib$(1).a -Wl,--no-whole-archive $2 - @if [ "x$(STRIP_LIBS)" -eq "x1" ]; then i686-pc-toaru-strip $$@; fi + @if [ "x$(STRIP_LIBS)" = "x1" ]; then i686-pc-toaru-strip $$@; fi @${END} "SO" "$$@" endef