dev-libs/libmcp23s17: Fix the Makefile patch.

Package-Manager: Portage-2.3.31, Repoman-2.3.9
Manifest-Sign-Key: 766B8122134269123401492A8B54D7A3FF3CDB17
This commit is contained in:
Nils Freydank 2018-05-01 11:58:48 +02:00
parent 0b704a623e
commit 2b5add3906
No known key found for this signature in database
GPG Key ID: 1D1E9E428EF58746

View File

@ -1,34 +1,27 @@
--- a/Makefile 2015-07-27 11:40:07.000000000 +0200 --- a/Makefile 2018-05-01 06:00:00.000000000 +0200
+++ b/Makefile 2017-10-22 11:26:50.381365663 +0200 +++ b/Makefile 2018-05-01 06:00:00.000000001 +0200
@@ -1,11 +1,11 @@ @@ -1,11 +1,11 @@
PROJECT=mcp23s17 PROJECT=mcp23s17
SOURCES=src/mcp23s17.c SOURCES=src/mcp23s17.c
-LIBRARY=static -LIBRARY=static
-INCPATHS= +LIBRARY=shared
-LIBPATHS= INCPATHS=
LIBPATHS=
-LDFLAGS= -LDFLAGS=
-CFLAGS=-c -Wall -CFLAGS=-c -Wall
-CC=gcc -CC=gcc
+CC ?= gcc
+CFLAGS += -Wall
+LIBRARY=shared
+INCPATHS =
+LIBPATHS =
+LDFLAGS += +LDFLAGS +=
+CFLAGS += -c -Wall
+CC ?= gcc
# ------------ MAGIC BEGINS HERE ------------- # ------------ MAGIC BEGINS HERE -------------
@@ -31,20 +31,20 @@ @@ -35,16 +35,16 @@
ifeq "$(LIBRARY)" "static"
ar rcs $(BINARY) $(OBJECTS)
else
- $(CC) $(LIBFLAGS) $(OBJECTS) $(LDFLAGS) -o $@
+ $(CC) $(CFLAGS) $(LIBFLAGS) $(OBJECTS) $(LDFLAGS) -o $@
endif endif
.c.o: .c.o:
- $(CC) $(INCFLAGS) $(CFLAGS) -fPIC $< -o $@ - $(CC) $(INCFLAGS) $(CFLAGS) -fPIC $< -o $@
+ $(CC) $(INCFLAGS) $(CFLAGS) $(LDFLAGS) -fPIC $< -o $@ + $(CC) $(INCFLAGS) $(CFLAGS) $(LIBFLAGS) -fPIC $< -o $@
distclean: clean distclean: clean
rm -f $(BINARY) rm -f $(BINARY)
@ -43,3 +36,4 @@
clean: clean:
rm -f $(OBJECTS) rm -f $(OBJECTS)