Skip to content

Commit

Permalink
Adding LDFLAGS for another Arch packaging issue
Browse files Browse the repository at this point in the history
Also `-lm` to the library for the same, though possibly it should have
had it anyway. `pico-tts` needs it regardless of if the library has it
but it eliminates a warning.
  • Loading branch information
Iiridayn committed Aug 17, 2024
1 parent 65a6c97 commit e4b22ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ $(OBJS): %.o: %.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(SVOXFLAGS) -c -o $@ $^

$(TARGET_LIB): $(OBJS)
$(CC) ${LDFLAGS} -shared -o $@ $^
$(CC) ${LDFLAGS} -shared -o $@ $^ -lm

dev: pico-tts.c $(TARGET_LIB)
$(CC) $(CPPFLAGS) $(CFLAGS) -g -Wl,-rpath=. -o $@ $^ -I $(LIB_DIR) -L. -l svoxpico -lm

pico-tts: pico-tts.c $(TARGET_LIB)
$(CC) $(CPPFLAGS) $(CFLAGS) -DNDEBUG -o $@ $^ -I $(LIB_DIR) -L. -l svoxpico -lm
$(CC) $(CPPFLAGS) $(CFLAGS) -DNDEBUG -o $@ $^ $(LDFLAGS) -I $(LIB_DIR) -L. -l svoxpico -lm

install: pico-tts
install -D -s -t $(DESTDIR)/usr/lib/ ${TARGET_LIB}
Expand Down

0 comments on commit e4b22ee

Please sign in to comment.