Skip to content

Commit

Permalink
Had to change soname to install_name on macos, but I don't really know
Browse files Browse the repository at this point in the history
why.

https://stackoverflow.com/questions/4580789/ld-unknown-option-soname-on-os-x

-	$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,$(SONAME) -o $@ $(MAIN_O)
+	$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-install_name,$(SONAME) -o $@ $(MAIN_O)
  • Loading branch information
SethArchambault committed Oct 20, 2023
1 parent 983e136 commit c45cee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ lib/libmonocypher.so: lib/$(SONAME)
ln -sf `basename lib/$(SONAME)` $@

lib/$(SONAME): $(MAIN_O)
$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,$(SONAME) -o $@ $(MAIN_O)
$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-install_name,$(SONAME) -o $@ $(MAIN_O)

lib/monocypher.o: src/monocypher.c src/monocypher.h
@mkdir -p $(@D)
Expand Down

0 comments on commit c45cee3

Please sign in to comment.