on fresh GhostBSD installation add 'pkg install GhostBSD-clibs-dev' to get standard libc development environment
write simple helloworld.c and build:
$ make helloworld
which is executing:
$ cc -O2 -pipe -o helloworld helloworld.c
toolchain is expecing -lgcc when executing 'ld' to link objects and libraries
in fact -lgcc is not required
either -lgcc as compiler dependency is to be removed
or symbolic link in /usr/lib libgcc.so -> libgcc_s.so may solve the issue, but may incur future dependency issue.
Explain how to reproduce the bug?
helloworld.c:
include
int main() { printf("hello world\n"); return 0; };
Version
24.07.1
What desktop?
Official MATE
Explain the issue and what happens
on fresh GhostBSD installation add 'pkg install GhostBSD-clibs-dev' to get standard libc development environment
write simple helloworld.c and build: $ make helloworld which is executing: $ cc -O2 -pipe -o helloworld helloworld.c toolchain is expecing -lgcc when executing 'ld' to link objects and libraries
in fact -lgcc is not required
Explain how to reproduce the bug?
helloworld.c:
include
int main() { printf("hello world\n"); return 0; };
$ make helloworld
-- compilation failure
What is the Expected behavior (if applicable)
No response
Additional context (if applicable)
No response