From: LittleWuCoding <31984989+LittleWuCoding@users.noreply.github.com> Date: Sat, 12 Jan 2019 10:11:04 +0000 (+0800) Subject: Fix compiling error on Solaris X-Git-Tag: REL12_1_3_5~9 X-Git-Url: http://git.osdn.net/view?p=pghintplan%2Fpg_hint_plan.git;a=commitdiff_plain;h=85e97821b11dde0f57f543c0b1f407f871799d9b 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. --- 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)