Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion devLib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ CC ?= gcc
INCLUDE = -I.
DEFS = -D_GNU_SOURCE
CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Winline $(INCLUDE) -pipe -fPIC $(EXTRA_CFLAGS)
LDFLAGS ?= ""

LIBS =

Expand Down Expand Up @@ -68,7 +69,7 @@ $(STATIC): $(OBJ)

$(DYNAMIC): $(OBJ)
$Q echo "[Link (Dynamic)]"
$Q $(CC) -shared -Wl,-soname,libwiringPiDev.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPiDev.so.$(VERSION) -lpthread $(OBJ)
$Q $(CC) -shared -Wl,-soname,libwiringPiDev.so$(WIRINGPI_SONAME_SUFFIX) $(LDFLAGS) -o libwiringPiDev.so.$(VERSION) -lpthread $(OBJ)

.c.o:
$Q echo [Compile] $<
Expand Down
3 changes: 2 additions & 1 deletion wiringPi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ INCLUDE = -I.
DEFS = -D_GNU_SOURCE
CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Winline $(INCLUDE) -pipe -fPIC $(EXTRA_CFLAGS)
#CFLAGS = $(DEBUG) $(DEFS) -Wformat=2 -Wall -Wextra -Wconversion -Winline $(INCLUDE) -pipe -fPIC
LDFLAGS ?= ""

LIBS = -lm -lpthread -lrt -lcrypt

Expand Down Expand Up @@ -76,7 +77,7 @@ static:

$(DYNAMIC): $(OBJ)
$Q echo "[Link (Dynamic)]"
$Q $(CC) -shared -Wl,-soname,libwiringPi.so$(WIRINGPI_SONAME_SUFFIX) -o libwiringPi.so.$(VERSION) $(OBJ) $(LIBS)
$Q $(CC) -shared -Wl,-soname,libwiringPi.so$(WIRINGPI_SONAME_SUFFIX) $(LDFLAGS) -o libwiringPi.so.$(VERSION) $(OBJ) $(LIBS)

.c.o:
$Q echo [Compile] $<
Expand Down