Re: rpmbuild annoyance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]





On 22/03/16 20:20, m.roth@xxxxxxxxx wrote:
I'm building a package (rasmol, if you must know) from an srpm. It's an
FC20 pkg, nothing older, but the software itself hasn't changed. So... I
try the build, and it fails, telling me:
gcc: %__global_ldflags: No such file or directory
make: *** [rasmol] Error 1

Now, this isn't a brand-new package, so I'm puzzled by the error. Is there
supposed to be something I need to add to the rpmbuild command line,
or...?

Clues for the poor.


You didn't mention which version of CentOS you are trying to build on.

The %__global_ldflags macro was introduced in RHEL7. It's provided by redhat-rpm-config. If you're attempting to build on an older version then you'll need to fix that.



_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux