Re: [CentOS] rpmbuild annoyance

2016-03-22 Thread Phil Wyett
On Tue, 2016-03-22 at 22:11 +, Phil Wyett wrote: > On Tue, 2016-03-22 at 16:20 -0400, m.r...@5-cent.us 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

Re: [CentOS] rpmbuild annoyance

2016-03-22 Thread Phil Wyett
On Tue, 2016-03-22 at 16:20 -0400, m.r...@5-cent.us 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

Re: [CentOS] rpmbuild annoyance

2016-03-22 Thread Ned Slider
On 22/03/16 20:20, m.r...@5-cent.us 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: ***

Re: [CentOS] rpmbuild annoyance

2016-03-22 Thread Gordon Messmer
On 03/22/2016 01:20 PM, m.r...@5-cent.us wrote: gcc: %__global_ldflags: No such file or directory Sounds like a broken spec. __global_ldflags isn't always defined, so it should be conditionally referenced. IIRC, use %{?__global_ldflags} instead of %{__global_ldflags}

[CentOS] rpmbuild annoyance

2016-03-22 Thread m . roth
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