Closed aDu closed 6 years ago
I'm afraid I don't have a mac to run this on, so I'll need someone with a Mac to suggest a fix.
My guess would be something like:
ifeq ($(OS),Windows_NT)
LDLIBS += -lws2_32
else ifeq($(OS),MachOS)
# Nothing
else
LDLIBS += -lrt
endif
But I don't know what the magic environment variable is.
Thanks for the update, I have made an environment $(OS)
variable on my Mac to fix this for my personal use.
I did found another solution though: https://stackoverflow.com/questions/714100/os-detecting-makefile
On my Mac, I run
make all
, then I get the following error:I searched the error online and some sources say that Mac doesn't support lrt.
Makefile:
Although, if I remove the line with
LDLIBS += -lrt
then it compiles on my Mac. I was wondering if anyone else was experiencing similar problems?