commit fd14465344dd84a8501bcddf235733f655a13ac4
Author: Elan Ruusamäe <[email protected]>
Date: Tue Sep 11 10:51:28 2018 +0300
patch Makefile for our optflags
chntpw.spec | 2 +-
makefile.patch | 23 +++++++++++++++++++++++
2 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/chntpw.spec b/chntpw.spec
index 62cd03b..617a860 100644
--- a/chntpw.spec
+++ b/chntpw.spec
@@ -66,7 +66,7 @@ fi
%build
%{__make} chntpw cpnt reged \
CC="%{__cc}" \
- CFLAGS="%{rpmcflags} -DUSEOPENSSL -Wall"
+ OPTFLAGS="%{rpmcflags}"
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/makefile.patch b/makefile.patch
new file mode 100644
index 0000000..8d56754
--- /dev/null
+++ b/makefile.patch
@@ -0,0 +1,23 @@
+--- chntpw-140201/Makefile~ 2014-02-01 17:54:38.000000000 +0200
++++ chntpw-140201/Makefile 2018-09-11 10:47:54.492622319 +0300
+@@ -13,8 +13,8 @@
+ CC=gcc
+
+ # Force 32 bit
+-CFLAGS= -DUSEOPENSSL -g -I. -I$(OSSLINC) -Wall -m32
+-OSSLLIB=$(OSSLPATH)/lib
++CFLAGS= -DUSEOPENSSL -g -I. -I$(OSSLINC) -Wall $(OPTFLAGS)
++#OSSLLIB=$(OSSLPATH)/lib
+
+ # 64 bit if default for compiler setup
+ #CFLAGS= -DUSEOPENSSL -g -I. -I$(OSSLINC) -Wall
+@@ -23,8 +23,7 @@
+
+ # This is to link with whatever we have, SSL crypto lib we put in static
+ #LIBS=-L$(OSSLLIB) $(OSSLLIB)/libcrypto.a
+-LIBS=-L$(OSSLLIB)
+-
++#LIBS=-L$(OSSLLIB)
+
+ all: chntpw chntpw.static cpnt reged reged.static samusrgrp samusrgrp.static
sampasswd sampasswd.static
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/chntpw.git/commitdiff/fd14465344dd84a8501bcddf235733f655a13ac4
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit