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

glib: Build static libraries. #5974

Merged
merged 3 commits into from
Dec 11, 2022
Merged

glib: Build static libraries. #5974

merged 3 commits into from
Dec 11, 2022

Conversation

maleadt
Copy link
Contributor

@maleadt maleadt commented Dec 11, 2022

I need the .a's to compile qemu statically. It's not ideal to ship these to users, but lacking separate dev JLLs this is the only solution for now, and it's only a couple of MBs.

Note that we'll eventually want to move these out, e.g. using JuliaPackaging/BinaryBuilder.jl#778, but in the meantime let's just put these in main JLL.

@maleadt
Copy link
Contributor Author

maleadt commented Dec 11, 2022

Checking for alignment of "size_t" : -1
Running compile:
Working directory:  /workspace/srcdir/glib-2.74.0/build_glib/meson-private/tmp7ozm9qrh
Command line:  /opt/bin/aarch64-apple-darwin20-libgfortran5-cxx11/aarch64-apple-darwin20-clang -I/workspace/destdir/include /workspace/srcdir/glib-2.74.0/build_glib/meson-private/tmp7ozm9qrh/testfile.c -o /workspace/srcdir/glib-2.74.0/build_glib/meson-private/tmp7ozm9qrh/output.obj -c -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -std=gnu99

Code:
 #include <stdio.h>
        #include <stddef.h>
        int main(void) {
            wchar_t something;
            return 0;
        }
Compiler stdout:

Compiler stderr:
 clang-13: error: -Wl,-sdk_version,11.0: 'linker' input unused [-Werror,-Wunused-command-line-argument]

Checking for size of "wchar_t" : -1

@giordano
Copy link
Member

giordano commented Dec 11, 2022

Gotta ask who believes that defaulting to -Werror is a good idea

@maleadt
Copy link
Contributor Author

maleadt commented Dec 11, 2022

It's meson, actually. This looks like mesonbuild/meson#4542, but we use a version of meson that includes the fix...

@maleadt maleadt merged commit 36b41a4 into master Dec 11, 2022
@maleadt maleadt deleted the tb/glic_static branch December 11, 2022 16:02
@maleadt maleadt changed the title glib: also generate static libraries. glib: Build static libraries. Dec 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants