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

Changes needed to compile under FreeBSD #1

Open
tingox opened this issue Feb 27, 2018 · 1 comment
Open

Changes needed to compile under FreeBSD #1

tingox opened this issue Feb 27, 2018 · 1 comment

Comments

@tingox
Copy link
Owner

tingox commented Feb 27, 2018

To get the emulator to compile under a recent FreeBSD, I had to make changes to the Makefile
CC= cc
CFLAGS = -Wall -O3 -pg -I/usr/local/include
LDFLAGS = -L/usr/local/lib
and
nd100em: nd100em.o nd100lib.o cpu.o rtc.o mon.o decode.o float.o floppy.o io.o trace.o $(CC) $(CFLAGS) $(LDFLAGS) -pthread nd100em.o nd100lib.o cpu.o rtc.o mon.o decode.o float.o floppy.o io.o trace.o -lconfig -lm -o nd100em
FreeBSD has switched to clang, installed as cc, and doesn't have gcc installed as default anymore.
The /usr/local/include and /usr/local/lib part is to find libconfig when installed in FreeBSD.

@tingox
Copy link
Owner Author

tingox commented Feb 27, 2018

Tested on
tingo@kg-core1$ uname -a FreeBSD kg-core1.kg4.no 10.4-STABLE FreeBSD 10.4-STABLE #1 r329982: Sun Feb 25 20:35:06 CET 2018 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64

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