OSDN Git Service

Fix compiling error on Solaris
authorLittleWuCoding <31984989+LittleWuCoding@users.noreply.github.com>
Sat, 12 Jan 2019 10:11:04 +0000 (18:11 +0800)
committerKyotaro Horiguchi <horikyota.ntt@gmail.com>
Thu, 13 Feb 2020 11:00:54 +0000 (20:00 +0900)
The 'LDFLAGS+=-Wl,--build-id' option is for rpm building in Linux like
OS.  The SunOS is not native support the option
'LDFLAGS+=-Wl,--build-id' . So, we disable this option in SunOS while
compiling.

Committed a bit tweaked version from the orignal.

Makefile

index de9f5c5..8c0eff4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,7 +31,9 @@ TARSOURCES = Makefile *.c  *.h COPYRIGHT* \
        doc/* expected/*.out sql/*.sql sql/maskout.sh \
        data/data.csv input/*.source output/*.source SPECS/*.spec
 
        doc/* expected/*.out sql/*.sql sql/maskout.sh \
        data/data.csv input/*.source output/*.source SPECS/*.spec
 
+ifneq ($(shell uname), SunOS)
 LDFLAGS+=-Wl,--build-id
 LDFLAGS+=-Wl,--build-id
+endif
 
 installcheck: $(REGRESSION_EXPECTED)
 
 
 installcheck: $(REGRESSION_EXPECTED)