OSX Makefile changes - #218
Conversation
|
Duplicate with #193 |
|
With the prerequisite dependency (
The software itself only appears to work correctly when run with sudo, however. When run without root privileges it returns a Also worthy of note, OS X uses launchd instead of systemd. The way of having the utility start automatically on boot on OS X is making a Launch Daemon. |
| lib/lib$(PROGN).so: $(LIBSRCS) | ||
| @mkdir -p lib | ||
| $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared -Wl,-soname,lib$(PROGN).so -o lib/lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) $^ $(LIBS) | ||
| $(CXX) $(CPPFLAGS) $(CXXFLAGS) $(LDFLAGS) -fPIC -shared $(LINKFLAGS) -o lib/lib$(PROGN).so.$(MAJOR).$(MINOR).$(MICRO) $^ $(LIBS) |
There was a problem hiding this comment.
Shouldn't this be
this^ and the following: -LINKFLAGS
+LINK_FLAGSand LDFLAGS="-L/opt/homebrew/Cellar/hidapi/0.14.0/lib" CXXFLAGS="-I/opt/homebrew/Cellar/hidapi/0.14.0/include" make allCompiles on Sonoma 14.7 with a latest version of g810-led ( |
See #174