Ticket #322 (new defect)

Opened 12 months ago

Last modified 7 weeks ago

Building does not respect custom C(XX)FLAGS / parallel build option

Reported by: user Owned by: somebody
Priority: major Milestone: libzzub 0.2.4
Component: libzzub Version: linux
Keywords: build rpm deb Cc:

Description

For the upstream inclusion in several different GNU/Linux distributions, their standard CFLAGS/CXXFLAGS must be respected and currently there is no way to pass them to a libzzub build. Same goes for building with multiple threads, in line with GNU make's -j option.

The attached patch changes the top-level SConstruct file to import and adapt the CCFLAGS and JOBS parameters from the scons call so it can be used with packaging tools.

-- Alexander Kahl (e minus user at gmx dot net)

Attachments

libzzub-buildfix.patch (1.5 kB) - added by user 12 months ago.
patch to fix building with custom compiler flags

Change History

Changed 12 months ago by user

patch to fix building with custom compiler flags

Changed 4 months ago by user

for compiler flags, the patch is needed, but for setting the number of jobs, it's unnecessary since scons already support the '-j' command line option by default.

Changed 7 weeks ago by user

OK; in 0.2.5, CCFLAGS are respected but still a bunch of other flags is added. Can you please add at least some option to make them all go away so I don't have to patch our build (official Fedora package) anew each time? The extended processor instruction detection is even more problematic, read: harmful since a build host's CPU does not necessarily match a user's host CPU. I had to patch the flags away here, too since one user did not have an extended instruction set while running an otherwise perfectly compatible i386 system resulting in SIGILL/4 crashes.

Note: See TracTickets for help on using tickets.