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

Does not build on macOS #168

Open
LeSuisse opened this issue Nov 30, 2022 · 0 comments
Open

Does not build on macOS #168

LeSuisse opened this issue Nov 30, 2022 · 0 comments

Comments

@LeSuisse
Copy link

Hello,

While upgrading mujs in nixpkgs (NixOS/nixpkgs#203664), we spotted an issue with the macOS builds.

building
build flags: SHELL=/nix/store/1bsjl5incfnszv7scdh4d02sh45vw2w1-bash-5.1-p16/bin/bash prefix=\$\(out\)
clang -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter -Wunreachable-code -O2  -o build/release/main.o -c main.c
clang -std=c99 -pedantic -Wall -Wextra -Wno-unused-parameter -Wunreachable-code -O2  -o build/release/libmujs.o -c one.c
ar cr build/release/libmujs.a build/release/libmujs.o
clang -Wl,-s -o build/release/mujs build/release/main.o -Lbuild/release -l:libmujs.a  -lm
ld: warning: option -s is obsolete and being ignored
ld: library not found for -l:libmujs.a
clang-11: error: linker command failed with exit code 1 (use -v to see invocation)

It looks like the changes made in d592c78 is causing some troubles, reverting the patch makes it work on macOS.

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

No branches or pull requests

1 participant