OSDN Git Service

Fix compiling error on Solaris
authorsunw.fnst <30999182+Dagouhan@users.noreply.github.com>
Wed, 1 Jul 2020 11:37:50 +0000 (19:37 +0800)
committerKyotaro Horiguchi <horikyota.ntt@gmail.com>
Tue, 30 Nov 2021 07:43:39 +0000 (16:43 +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, disable this option in SunOS while
compiling.

Makefile

index b40c426..578c3a1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -33,7 +33,9 @@ TARSOURCES = Makefile *.c  *.h \
        pg_store_plans.control \
        docs/* expected/*.out sql/*.sql \
 
+ifneq ($(shell uname), SunOS)
 LDFLAGS+=-Wl,--build-id
+endif
 
 ## These entries need running server
 DBNAME = postgres