Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qt-5/modules/qtbase.nix: set flags for cross compilation #220314

Closed
wants to merge 2 commits into from
Closed

qt-5/modules/qtbase.nix: set flags for cross compilation #220314

wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 9, 2023

Description of changes

This commit sets the PKG_CONFIG_SYSROOT_DIR and PKG_CONFIG_LIBDIR environment variables when compiling a cross-targeted qmake. This is required; if these environment variables are unset, qmake won't even try to use pkg-config.

This commit also writes LDFLAGS, CFLAGS, and CXXFLAGS into qmake.conf.

Incorporates:

@ghost ghost requested a review from ttuegel as a code owner March 9, 2023 09:48
@ghost ghost mentioned this pull request Mar 9, 2023
@ofborg ofborg bot added 6.topic: cross-compilation Building packages on a different platform than they will be used on 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Mar 9, 2023
@SuperSandro2000 SuperSandro2000 marked this pull request as draft March 18, 2023 15:50
@ghost ghost marked this pull request as ready for review March 21, 2023 03:14
Adam Joseph added 2 commits April 15, 2023 18:48
This commit adds the `-device` and `-device-option` flags necessary
for cross compilation to `configureFlags`.

It also adds the (one-entry at the moment) Rosetta Stone for QT-5 as
a `let`-defined `qtPlatform` function which takes a nixpkgs platform
and returns a QT-5 `mkspecs`-string.
This commit:

- sets the `PKG_CONFIG_SYSROOT_DIR` and `PKG_CONFIG_LIBDIR`
  environment variables when compiling a cross-targeted `qmake`.
  This is required; if these environment variables are unset,
  `qmake` won't even try to use `pkg-config`.

- writes `LDFLAGS`, `CFLAGS`, and `CXXFLAGS` into `qmake.conf`.
@ghost ghost marked this pull request as draft April 24, 2023 02:19
@ghost ghost marked this pull request as ready for review June 21, 2023 05:14
@ghost ghost closed this Oct 22, 2023
@ghost ghost deleted the pr/qt5/cross/buildFlags branch October 22, 2023 05:36
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: cross-compilation Building packages on a different platform than they will be used on 6.topic: qt/kde 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant