mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-18 22:28:14 +00:00
Merge pull request #415 from anthraxx/master
extend global CFLAGS and LDFLAGS to aid distro packaging
This commit is contained in:
commit
69e3e39568
@ -90,7 +90,7 @@ VERSION_TAG := $(shell test -d .git && git describe --tags --dirty=
|
|||||||
## Compiler flags
|
## Compiler flags
|
||||||
##
|
##
|
||||||
|
|
||||||
CFLAGS := -pipe -W -Wall -std=c99 -Iinclude/ -IOpenCL/ -I$(OPENCL_HEADERS_KHRONOS)/
|
CFLAGS += -pipe -W -Wall -std=c99 -Iinclude/ -IOpenCL/ -I$(OPENCL_HEADERS_KHRONOS)/
|
||||||
|
|
||||||
ifndef DEBUG
|
ifndef DEBUG
|
||||||
CFLAGS += -O2
|
CFLAGS += -O2
|
||||||
@ -112,6 +112,7 @@ export MACOSX_DEPLOYMENT_TARGET=10.9
|
|||||||
CFLAGS_NATIVE := -D_POSIX -DDARWIN
|
CFLAGS_NATIVE := -D_POSIX -DDARWIN
|
||||||
CFLAGS_NATIVE += $(CFLAGS)
|
CFLAGS_NATIVE += $(CFLAGS)
|
||||||
LFLAGS_NATIVE := -lpthread
|
LFLAGS_NATIVE := -lpthread
|
||||||
|
LFLAGS_NATIVE += $(LDFLAGS)
|
||||||
endif # darwin
|
endif # darwin
|
||||||
|
|
||||||
ifeq ($(UNAME),Linux)
|
ifeq ($(UNAME),Linux)
|
||||||
@ -122,6 +123,7 @@ endif
|
|||||||
CFLAGS_NATIVE += $(CFLAGS)
|
CFLAGS_NATIVE += $(CFLAGS)
|
||||||
LFLAGS_NATIVE := -lpthread -ldl
|
LFLAGS_NATIVE := -lpthread -ldl
|
||||||
CFLAGS_NATIVE += -DHAVE_HWMON
|
CFLAGS_NATIVE += -DHAVE_HWMON
|
||||||
|
LFLAGS_NATIVE += $(LDFLAGS)
|
||||||
endif # linux
|
endif # linux
|
||||||
|
|
||||||
##
|
##
|
||||||
|
Loading…
Reference in New Issue
Block a user