Skip to content
Snippets Groups Projects
Commit 0fca8043 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

build: use hexdump instead of xxd, optional libdl

parent 309c5a8a
Branches
Tags
No related merge requests found
......@@ -16,6 +16,6 @@ CFLAGS += -std=c99 -D_GNU_SOURCE -Wall -fPIC -I$(abspath .) -I$(abspath lib/gene
CFLAGS += -DPACKAGE_VERSION="\"$(MAJOR).$(MINOR)\"" -DPREFIX="\"$(PREFIX)\"" -DMODULEDIR="\"$(MODULEDIR)\""
RM := rm -f
LN := ln -s
XXD ?= xxd
XXD ?= hexdump -v -e '/1 "0x%02X, " " "'
INSTALL := install
PYTHON := python
......@@ -10,7 +10,7 @@ kresolved_SOURCES := \
# Embed resources
daemon/engine.o: daemon/lua/sandbox.inc daemon/lua/config.inc
%.inc: %.lua
@$(call quiet,XXD,$<) -i - < $< > $@
@$(call quiet,XXD,$<) $< > $@
# Dependencies
kresolved_DEPEND := $(libkresolve)
......
......@@ -15,6 +15,9 @@
*/
#include <assert.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include "lib/nsrep.h"
#include "lib/defines.h"
......
......@@ -22,7 +22,10 @@ else
MODTYPE := dynamiclib
else
PLATFORM := POSIX
LDFLAGS += -pthread -ldl
LDFLAGS += -pthread
ifeq (,$(findstring BSD,$(UNAME)))
LDFLAGS += -ldl
endif
endif
endif
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment