summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2022-02-21 17:31:46 +0000
committerNick White <git@njw.name>2022-02-21 17:31:46 +0000
commitcac42fb80ab31443dc507297b99c8704a397b2d8 (patch)
tree32cbea7ff11cf2a99ac9c0f689a761cca6aa57b6
parent9706885e2f0be735333175785c6e3d6cbcf245fe (diff)
Improve options for musl static compiling, that works with openssl
-rw-r--r--config.mk9
1 files changed, 5 insertions, 4 deletions
diff --git a/config.mk b/config.mk
index f763235..b8065c2 100644
--- a/config.mk
+++ b/config.mk
@@ -5,11 +5,12 @@ RELDATE = 2015-07-28
# paths
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
+OPENSSL = /home/nick/tmp/openssl-1.1.1m
LIBS = -lssl -lcrypto
-CFLAGS = -std=c99 -pedantic -Wall -Wextra -Werror -g -D_POSIX_C_SOURCE=200112L \
- -DVERSION=\"$(VERSION)\"
+CFLAGS = -std=c99 -pedantic -Wall -Wextra -g -D_POSIX_C_SOURCE=200112L \
+ -DVERSION=\"$(VERSION)\" -I$(OPENSSL)/include
W32TCLKIT = tclkit-8.5.9-win32.upx.exe
@@ -18,8 +19,8 @@ CC = cc
LDFLAGS = $(LIBS)
# musl static
-#CC = musl-gcc
-#LDFLAGS = $(LIBS) -static #-s
+#CC = musl-gcc -static
+#LDFLAGS = $(LIBS) -L$(OPENSSL) -static #-s
# mingw
#CC = i686-w64-mingw32-gcc