Skip to content

Commit

Permalink
Link against $LIBS
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Nov 8, 2018
1 parent 30f217e commit 67c51ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
1.3
- Fix for sys 2.0 (do not quote arg on Windows)
- Link unrtf executable with $(LIBS) hopefully fixes Solaris

1.2
- Fix format-truncation warning in GCC-7
Expand Down
5 changes: 1 addition & 4 deletions src/Makevars
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,13 @@ LIBUNRTF = \

UNRTF = unrtf$(WIN)

# On OSX we need to link iconv
MACFLAGS = $(subst -framework,-liconv -framework,$(FOUNDATION_LIBS))

# On Windows we need to link Riconv and winsock
WINFLAGS = $(subst 64,-lws2_32 $(LIBR) -lRiconv,$(subst 32,64,$(WIN)))

all: clean $(UNRTF)

$(UNRTF): $(LIBUNRTF)
$(CC) $(CFLAGS) -o $(UNRTF) $(LIBUNRTF) $(MACFLAGS) $(WINFLAGS)
$(CC) $(CFLAGS) -o $(UNRTF) $(LIBUNRTF) $(MACFLAGS) $(WINFLAGS) $(LIBS)
mkdir -p $(INSTDIR)/bin
cp -f $(UNRTF) $(INSTDIR)/bin/
cp -Rf share $(INSTDIR)/
Expand Down

0 comments on commit 67c51ca

Please sign in to comment.