Debian Codegraph @

debian/patches/20_compiler_flags.patch

raw symbols SCIP
1 Description: The makefile overrides flags so you can't set them via d/rules or the environment.
2 Author: Unit 193 <[email protected]>
3 Origin: vendor
4 Forwarded: no
5 Last-Update: 2014-01-04
6
7 Index: samdump2-3.0.0/Makefile
8 ===================================================================
9 --- samdump2-3.0.0.orig/Makefile
10 +++ samdump2-3.0.0/Makefile
11 @@ -24,12 +24,12 @@ DISTFILES = AUTHORS ChangeLog hive.c LIC
12 samdump2.1 samdump2.h bkhive.c COPYING hive.h list.c\
13 main.c README samdump2.c dumpsam.c ntdll.h
14 DESTDIR =
15 -PREFIX = /usr/local/
16 +PREFIX ?= /usr/local/
17 BINDIR = $(PREFIX)/bin
18 MANDIR = $(PREFIX)/share/man/man1
19 INSTALL = $(shell which install)
20 -CC = $(shell which gcc)
21 -CFLAGS = -Wall
22 +CC ?= $(shell which gcc)
23 +CFLAGS += -Wall
24 LIBS = -lcrypto
25
26 # Default target
27 @@ -39,7 +39,7 @@ build: samdump2
28
29 samdump2: hive.o list.o bkhive.o samdump2.o main.o dumpsam.o
30 @echo "Building binary..."
31 - $(CC) -o $@ $^ $(CFLAGS) $(LIBS)
32 + $(CC) -o $@ $^ $(CFLAGS) $(LIBS) $(LDFLAGS)
33 @echo ""
34
35 # Clean target