]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
openssl: change sse2 optimization to i686.
authorArne Fitzenreiter <arne_f@ipfire.org>
Mon, 27 Apr 2015 19:19:46 +0000 (21:19 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 27 Apr 2015 19:19:46 +0000 (21:19 +0200)
lfs/openssl

index 9cc1b4b0f5a64bda04a1b68eebfcf68ec311243e..814c1e301a369df0cb2ef729c12621059a53651f 100644 (file)
@@ -33,7 +33,16 @@ DIR_APP    = $(DIR_SRC)/$(THISAPP)
 
 TARGET = $(DIR_INFO)/$(THISAPP)$(KCFG)
 
+ifneq "$(KCFG)" "-sse2"
 CFLAGS += -DPURIFY
+else
+CFLAGS =-O2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fPIC
+CFLAGS+= -fstack-protector-all --param=ssp-buffer-size=4
+CFLAGS+= -march=i686 -mmmx -msse -msse2 -mfpmath=sse
+CFLAGS+= -fomit-frame-pointer -DPURIFY
+CXXFLAGS="${CFLAGS}"
+endif
+
 export RPM_OPT_FLAGS = $(CFLAGS)
 
 CONFIGURE_OPTIONS = \