You are not logged in.

#1 2024-08-10 08:23:32

spacemannn
Member
Registered: 2024-08-08
Posts: 9

How to find compiler options used for official packages

Hi,
I've been trying to figure out how to determine which compiler options were used for precompiled packages from the arch package repositories.

Things I've been trying to determine:
- What are the default options used when compiling packages that are distributed from the regular core/extra/etc. repos? I've gotten the impression that they aren't compiled with the default /etc/makepkg.conf flags, however I'm not sure where to find the official environment CFLAGS/CXXFLAGS/etc. used.
- Are different packages compiled with different options, outside of what is specified in their packages individual PKGBUILD file? Does it depend on who compiled the package?
- Is there a record kept anywhere of the build log from when official core/extra/etc.? I've found some links online in forum threads etc., but they are all dead links. This seems like an important record to keep.

Any other related information would also be appreciated smile

Offline

#2 2024-08-10 10:12:31

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,487
Website

Re: How to find compiler options used for official packages

They are essentially from the default makepkg.conf.   You can see the actual makepkg.conf used by installing devtools and looking at /usr/share/devtools/makepkg.conf.d/x86_64.conf

Offline

#3 2024-08-10 17:38:43

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,150

Re: How to find compiler options used for official packages

Inside the binary tarballof all repo & aur packages you'll find  .BUILDINFO file that details the used options and some other things.

Edit: compiler flags are not in it, although some of the options do influence the resulting binary.

Last edited by Lone_Wolf (2024-08-10 17:40:34)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2024-08-10 17:49:06

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: How to find compiler options used for official packages

You can also check the PKGBUILD used for the package (e.g., through the website at the "packages" link in the header of this page) as a PKGBUILD can over-ride settings from the default makepkg.conf (either via variables like "options", or directly hard-coding flags in the actual build commands).

Last edited by Trilby (2024-08-10 17:49:34)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB