OSDN Git Service

Fix compiling error on Solaris
authorLucyLikeMilk <49512789+LucyLikeMilk@users.noreply.github.com>
Thu, 11 Jun 2020 09:00:54 +0000 (17:00 +0800)
committerKyotaro Horiguchi <horikyota.ntt@gmail.com>
Tue, 14 Jul 2020 07:02:17 +0000 (16:02 +0900)
Solaris doesn't like 'LDFLAGS+=-Wl,--build-id' option is for rpm
building. This has been applied on other branches but overlooked on
this branch.

Makefile

index e34bf3c..0ed3950 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
 
+ifneq ($(shell uname), SunOS)
 LDFLAGS+=-Wl,--build-id
+endif
 
 installcheck: $(REGRESSION_EXPECTED)