libxpm package: fix RHEL8 build with libintl (#37713)
Set LDFLAGS rather than LDLIBS
This commit is contained in:
		| @@ -27,6 +27,6 @@ class Libxpm(AutotoolsPackage, XorgPackage): | |||||||
|     depends_on("util-macros", type="build") |     depends_on("util-macros", type="build") | ||||||
| 
 | 
 | ||||||
|     def flag_handler(self, name, flags): |     def flag_handler(self, name, flags): | ||||||
|         if name == "ldlibs" and "intl" in self.spec["gettext"].libs.names: |         if name == "ldflags" and "intl" in self.spec["gettext"].libs.names: | ||||||
|             flags.append("-lintl") |             flags.append("-lintl") | ||||||
|         return env_flags(name, flags) |         return env_flags(name, flags) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Chris Green
					Chris Green