mirror of
https://github.com/bitwiseworks/gcc-os2.git
synced 2026-02-14 06:04:44 +00:00
Fix BLDLEVEL for gcc1.dll #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dmik on GitHub (Jan 14, 2020).
The new release of RPMs for GCC version 9 from #6 contains DLLs with a nice BLDLEVEL string thanks to this libtool fix:
60849038f6. However,gcc1.dllisn't built using Libtool and hence it didn't get a proper BLDLEVEL string but instead just a textual description. In order to do so, we need to fix its makefiles (to use the LT_BUILDLEVEL environment variable manually).The place where it is set now is this:
ee72211e30/libgcc/config/i386/t-emx (L16)Note that Yuri unconditionally refers to
RPM_PACKAGE_RELEASEthere which is only defined underrpmbuild. This produces weird description in non-rpmbiulddevelopment builds and should have been done conditionally. At least this is how we will make LT_BUILDLEVEL used here.Note that the presence of RPM_PACKAGE_VENDOR, RPM_PACKAGE_VERSION and RPM_PACKAGE_RELEASE environment variables with the respective values under
rpmbuildcould let us avoid introducing LT_BUILDLEVEL (see https://github.com/bitwiseworks/libtool-os2/issues/1) at all. But still, this would require to patch Makefile.am for each and every DLL we build in order to incorporate conditional RPM_PACKAGE_* usage on OS/2 there which is much more work than just define LT_BUILDLEVEL once in a .spec file (and not touch Makefile.am at all).@dmik commented on GitHub (Jan 15, 2020):
Just for the record, there is a temporary hack in gcc.spec which should get removed, once this ticket is fixed in the source tree:
bb3932145f.