forked from pool/postgresql15
a7add878fa
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql15?expand=0&rev=1
17 lines
562 B
Diff
17 lines
562 B
Diff
--- src/Makefile.global.in.orig
|
|
+++ src/Makefile.global.in
|
|
@@ -192,7 +192,12 @@ with_krb_srvnam = @with_krb_srvnam@
|
|
with_ldap = @with_ldap@
|
|
with_libxml = @with_libxml@
|
|
with_libxslt = @with_libxslt@
|
|
-with_llvm = @with_llvm@
|
|
+# Only build for LLVM, if the core supports it and the llvm and clang packages are installed.
|
|
+ifeq (@with_llvm@ $(wildcard /usr/bin/clang /usr/bin/llvm-lto),yes /usr/bin/clang /usr/bin/llvm-lto)
|
|
+with_llvm = yes
|
|
+else
|
|
+with_llvm = no
|
|
+endif
|
|
with_system_tzdata = @with_system_tzdata@
|
|
with_uuid = @with_uuid@
|
|
with_zlib = @with_zlib@
|