-
Notifications
You must be signed in to change notification settings - Fork 5
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
Multi-platform support #30
base: main
Are you sure you want to change the base?
Conversation
- Removed the Makefile.osx specific files, added a check for the `uname` and modified commands based on the output - Note that this is not guaranteed to work on Windows, since there is not a `uname` built into the terminal there, but since this Makefile should only be used for Mac or Linux it should be fine
- Small makefile fixes - Enabe static compiling of ftdi library for easier distribution
Fix macOS build errors
@@ -4,8 +4,17 @@ NAME := oni-repl | |||
SRC := main.c | |||
OBJ := $(SRC:.c=.o) | |||
CFLAGS := -pedantic -Wall -W -Werror -fPIC -O3 $(DEFS) | |||
LDFLAGS := -lm -lpthread -loni -ldl | |||
# LDFLAGS := -lm -lpthread -loni -ldl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would prefer that a final decision is made since things like this can cause confusion in the future
@@ -73,7 +75,7 @@ int oni_create_driver(const char* lib_name, oni_driver_t* driver) | |||
free(full_lib_name); | |||
|
|||
if (!handle) { | |||
// fprintf(stderr, "Failed to load driver: %s\n", dlerror()); | |||
// fprintf(stderr, "Failed to load driver: %s\n", dlerror()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrap in #ifndef NDEBUG
and uncomment? or remove?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please address comments and then this is approved
This reviews multi-platform support for liboni and, specially, the ft600 driver translator: