]> git.pld-linux.org Git - packages/aescrypt2.git/commitdiff
- build with proper CFLAGS
authortwittner <twittner@pld-linux.org>
Fri, 22 Sep 2006 10:45:08 +0000 (10:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    aescrypt2-CFLAGS.patch -> 1.1
    aescrypt2.spec -> 1.3

aescrypt2-CFLAGS.patch [new file with mode: 0644]
aescrypt2.spec

diff --git a/aescrypt2-CFLAGS.patch b/aescrypt2-CFLAGS.patch
new file mode 100644 (file)
index 0000000..5715986
--- /dev/null
@@ -0,0 +1,9 @@
+--- aescrypt2-1.0/Makefile~    2006-09-22 12:39:32.000000000 +0200
++++ aescrypt2-1.0/Makefile     2006-09-22 12:39:53.000000000 +0200
+@@ -1,5 +1,5 @@
+ all:
+-      $(CC) -O -o aescrypt2 aescrypt2.c aes.c sha256.c -D_FILE_OFFSET_BITS=64
++      $(CC) $(CFLAGS) -o aescrypt2 aescrypt2.c aes.c sha256.c -D_FILE_OFFSET_BITS=64
+ clean:
+       rm -f *.o aescrypt2
index d11af19da6f0334df63bb864ebe0e5f04660bed3..2903f9b1897c8572cfa63703a331ffc84693f548 100644 (file)
@@ -7,6 +7,7 @@ License:        GPL
 Group:         Applications
 Source0:       http://www.cr0.net:8040/code/crypto/aes/%{name}-%{version}.tgz
 # Source0-md5: 90db12e9fa66a43935201da33195a6b9
+Patch0:                %{name}-CFLAGS.patch
 URL:           http://www.cr0.net:8040/code/crypto/aes/
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -24,10 +25,11 @@ uniks
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__make} \
-       CC="%{__cc}"
+       CC="%{__cc}" CFLAGS="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.062426 seconds and 4 git commands to generate.