fernandotcl / TinyEMU

Tweaks to Fabrice Bellard's TinyEMU
MIT License
123 stars 62 forks source link

ld: library not found for -lrt #1

Closed brandonros closed 5 years ago

brandonros commented 5 years ago
gcc -o temu virtio.o pci.o fs.o cutils.o iomem.o simplefb.o json.o machine.o temu.o elf.o slirp/bootp.o slirp/ip_icmp.o slirp/mbuf.o slirp/slirp.o slirp/tcp_output.o slirp/cksum.o slirp/ip_input.o slirp/misc.o slirp/socket.o slirp/tcp_subr.o slirp/udp.o slirp/if.o slirp/ip_output.o slirp/sbuf.o slirp/tcp_input.o slirp/tcp_timer.o fs_disk.o fs_net.o fs_wget.o fs_utils.o block_net.o sdl.o riscv_machine.o softfp.o riscv_cpu32.o riscv_cpu64.o riscv_cpu128.o x86_cpu.o x86_machine.o ide.o ps2.o vmmouse.o pckbd.o vga.o compress.o -lrt -lcurl -lcrypto -lSDL2  -lz
ld: library not found for -lrt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [temu] Error 1
brandonros commented 5 years ago
Brandon-Ros-MacBook-Pro:TinyEMU bros$ uname -a
Darwin Brandon-Ros-MacBook-Pro.local 17.7.0 Darwin Kernel Version 17.7.0: Wed Apr 24 21:17:24 PDT 2019; root:xnu-4570.71.45~1/RELEASE_X86_64 x86_64
brandonros commented 5 years ago

Uncomment CONFIG_MACOS=y in Makefile.