Brad Bishop | 23eaf03 | 2019-11-20 05:15:02 -0500 | [diff] [blame^] | 1 | From e97bb73851f5bbd94260da553a222526485cdfb1 Mon Sep 17 00:00:00 2001 |
| 2 | From: Leon Anavi <leon.anavi@konsulko.com> |
| 3 | Date: Fri, 15 Nov 2019 18:24:42 +0000 |
| 4 | Subject: [PATCH] config.mk: Fix compiler and linker |
| 5 | |
| 6 | Do not set explicitly compiler and linker. |
| 7 | |
| 8 | Signed-off-by: Leon Anavi <leon.anavi@konsulko.com> |
| 9 | --- |
| 10 | config.mk | 8 ++++---- |
| 11 | 1 file changed, 4 insertions(+), 4 deletions(-) |
| 12 | |
| 13 | diff --git a/config.mk b/config.mk |
| 14 | index df6e812..5deb991 100644 |
| 15 | --- a/config.mk |
| 16 | +++ b/config.mk |
| 17 | @@ -15,17 +15,17 @@ GTKINC = `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0` |
| 18 | GTKLIB = `pkg-config --libs gtk+-3.0 webkit2gtk-4.0` |
| 19 | |
| 20 | # includes and libs |
| 21 | -INCS = -I. -I/usr/include -I${X11INC} ${GTKINC} |
| 22 | -LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${GTKLIB} -lgthread-2.0 |
| 23 | +INCS = ${GTKINC} |
| 24 | +LIBS = -lc -lX11 ${GTKLIB} -lgthread-2.0 |
| 25 | |
| 26 | # flags |
| 27 | CPPFLAGS = -DVERSION=\"${VERSION}\" -DWEBEXTDIR=\"${LIBPREFIX}\" -D_DEFAULT_SOURCE |
| 28 | CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} |
| 29 | -LDFLAGS = -s ${LIBS} |
| 30 | +LDFLAGS = ${LIBS} |
| 31 | |
| 32 | # Solaris |
| 33 | #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" |
| 34 | #LDFLAGS = ${LIBS} |
| 35 | |
| 36 | # compiler and linker |
| 37 | -CC = cc |
| 38 | +CC ?= cc |
| 39 | -- |
| 40 | 2.7.4 |
| 41 | |