https://bugzilla.redhat.com/show_bug.cgi?id=1823134



--- Comment #3 from Ron Olson <[email protected]> ---
Hey Artur-

Thanks for taking a look. I did have %configure initially, but when using that,
the build fails because some of the extra flags that are added:

COB_CFLAGS = -I/usr/include -Wno-unused -fsigned-char -Wno-pointer-sign -pipe
-Wall -Werror=format-security -Wp, -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
-strong record-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fstack-clash-protection -fcf-protection -pipe

Specifically, note that it's trying to pass "-strong record-gcc-switches", and
doesn't understand the '-strong' flag and has no idea what to do with
'record-gcc-switches':

make[2]: Entering directory '/home/rolson/rpmbuild/BUILD/gnucobol-2.2/extras'
. ../tests/atconfig && . ../tests/atlocal extras-CBL_OC_DUMP.so \
        && $COBC -m -Wall -O -o CBL_OC_DUMP.so CBL_OC_DUMP.cob
gcc: error: record-gcc-switches: No such file or directory
gcc: error: unrecognized command line option '-strong'
make[2]: *** [Makefile:578: CBL_OC_DUMP.so] Error 1


Also, interestingly enough, if I don't have %global debug_package %{nil} at the
top of the file, I get this error at the end of packaging:

error: Empty %files file
/home/rolson/rpmbuild/BUILD/gnucobol-2.2/debugsourcefiles.list

A bit of searching suggests that having %global debug_package %{nil} is the
solution; I can confirm that it does package with the line.

I made the other suggestions, including creating a -devel package for the
headers and libs

I have updated the latest spec and SRPM file


-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to