Skip to content

Commit

Permalink
unix: use LIBS for -lutil instead of LDFLAGS
Browse files Browse the repository at this point in the history
LIBS is the right variable to add libraries.
  • Loading branch information
Coacher committed Jun 8, 2016
1 parent 36dbb9f commit df957e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make_unix.mak
Expand Up @@ -9,12 +9,12 @@ TARGET=lib/vimproc_$(SUFFIX).so

SRC=src/proc.c
CFLAGS+=-W -O2 -Wall -Wno-unused -Wno-unused-parameter -std=gnu99 -pedantic -shared -fPIC
LDFLAGS+=-lutil
LIBS=-lutil

all: $(TARGET)

$(TARGET): $(SRC) src/vimstack.c
$(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LDFLAGS)
$(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LIBS)

clean:
rm -f $(TARGET)

0 comments on commit df957e4

Please sign in to comment.