Skip to content

Commit

Permalink
Add -lm to shared library creation.
Browse files Browse the repository at this point in the history
Closes #110
  • Loading branch information
kristapsdz committed Mar 28, 2023
1 parent bcc5ccf commit 8b76aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -183,7 +183,7 @@ liblowdown.a: $(OBJS) $(COMPAT_OBJS)
$(AR) rs $@ $(OBJS) $(COMPAT_OBJS)

liblowdown.so: $(OBJS) $(COMPAT_OBJS)
$(CC) $(CFLAGS) -shared -o $@.$(LIBVER) $(OBJS) $(COMPAT_OBJS) $(LDFLAGS) $(LDADD_MD5) -Wl,${LINKER_SONAME},$@.$(LIBVER)
$(CC) $(CFLAGS) -shared -o $@.$(LIBVER) $(OBJS) $(COMPAT_OBJS) $(LDFLAGS) $(LDADD_MD5) -lm -Wl,${LINKER_SONAME},$@.$(LIBVER)
ln -sf $@.$(LIBVER) $@

install: bins
Expand Down

0 comments on commit 8b76aae

Please sign in to comment.