forked from pool/openpgm
Backport patches from upstream to avoid adding a non-existing foo/lib/pgm-5.2/include directory to pkg-config's CFLAGS which breaks applications using strict compiler flags, and to make the build reproducible regardless of the reported system/architecture OBS-URL: https://build.opensuse.org/request/show/668567 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/openpgm?expand=0&rev=17
14 lines
719 B
Diff
14 lines
719 B
Diff
Author: Luca Boccassi <bluca@debian.org>
|
|
Description: pkg-config: do not add -I to non-existing directory
|
|
foo/lib/pgm-5.2/include does not exist, so applications using strict
|
|
compiler flags will fail to build due to this -I flag
|
|
Origin: https://github.com/steve-o/openpgm/pull/57
|
|
--- pgm.orig/openpgm-5.2.pc.in
|
|
+++ pgm/openpgm-5.2.pc.in
|
|
@@ -9,4 +9,4 @@ Version: @PACKAGE_VERSION@
|
|
# packagers may wish to move @LIBS@ to Libs.private for platforms with
|
|
# versions of pkg-config that support static linking.
|
|
Libs: -L${libdir} -lpgm @LIBS@
|
|
-Cflags: -I${includedir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@ -I${libdir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@/include
|
|
+Cflags: -I${includedir}/pgm-@VERSION_MAJOR@.@VERSION_MINOR@
|