From 85e97821b11dde0f57f543c0b1f407f871799d9b Mon Sep 17 00:00:00 2001 From: LittleWuCoding <31984989+LittleWuCoding@users.noreply.github.com> Date: Sat, 12 Jan 2019 18:11:04 +0800 Subject: [PATCH] Fix compiling error on Solaris 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index de9f5c5..8c0eff4 100644 --- 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) -- 2.11.0