Skip to content

Changes needed to compile under FreeBSD #1

@tingox

Description

@tingox

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions