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

-weak_framework may not be supported by Apple linker: error: unrecognized command-line option '-weak_framework'; did you mean '-framework'? #214

Open
barracuda156 opened this issue Aug 2, 2024 · 1 comment

Comments

@barracuda156
Copy link

[ 80%] Linking CXX executable rastertobrlaser
/opt/local/bin/cmake -E cmake_link_script CMakeFiles/rastertobrlaser.dir/link.txt --verbose=ON
/opt/local/bin/g++-mp-14  -Wall -Wno-missing-braces -Wformat -D_FORTIFY_SOURCE=2 -pipe -Os -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -arch ppc -mmacosx-version-min=10.6 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -L/opt/local/lib -Wl,-headerpad_max_install_names CMakeFiles/rastertobrlaser.dir/src/main.cc.o CMakeFiles/rastertobrlaser.dir/src/job.cc.o CMakeFiles/rastertobrlaser.dir/src/line.cc.o CMakeFiles/rastertobrlaser.dir/src/debug.cc.o -o rastertobrlaser  -Wl,-rpath,/opt/local/lib -lcupsimage -lcups -weak_framework Kerberos -framework CoreFoundation -framework Security -lz -lpthread -lresolv -framework SystemConfiguration -framework CoreFoundation
g++-mp-14: error: unrecognized command-line option '-weak_framework'; did you mean '-framework'?
make[2]: *** [rastertobrlaser] Error 1
@barracuda156
Copy link
Author

Hmm, it is pulled in by cups-config, and apparently it is GCC who does not understand the flag, not ld as such. I.e., what works correctly is -Wl,-weak_framework Kerberos. How to pass it this way though, besides manually extracting ldflags and feeding into -DCUPS_LIBS=?

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