Группа :: Мониторинг
Пакет: free-sa
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: free-sa-1.6.2-alt3.3.patch
Скачать
Скачать
configs/altlinux-i586-gcc4.mk | 14 +++++++-------
configs/altlinux-x86_64-gcc4.mk | 25 +++++++++++++++++++++++++
2 files changed, 32 insertions(+), 7 deletions(-)
diff --git a/configs/altlinux-i586-gcc4.mk b/configs/altlinux-i586-gcc4.mk
index ae94a06..606e0bf 100644
--- a/configs/altlinux-i586-gcc4.mk
+++ b/configs/altlinux-i586-gcc4.mk
@@ -1,10 +1,10 @@
-PREFIX = /usr
-ETCDIR = /etc/$(PROGLNAME)
-WWWDIR = /var/www/html/$(PROGLNAME)
-TMPDIR = /var/cache/$(PROGLNAME)
+PREFIX = $(DESTDIR)/usr
+ETCDIR = $(DESTDIR)/etc/$(PROGLNAME)
+WWWDIR = $(DESTDIR)/var/www/html/$(PROGLNAME)
+TMPDIR = $(DESTDIR)/var/cache/$(PROGLNAME)
LOCDIR = $(PREFIX)/share/$(PROGLNAME)
DOCDIR = $(PREFIX)/share/doc/$(PROGLNAME)-$(PROGVERSION)
-LOGFILE = /var/log/squid/access.log
+LOGFILE = $(DESTDIR)/var/log/squid/access.log
CC = gcc
SORT = /bin/sort
@@ -14,9 +14,9 @@ LARGEFILE = yes
SATSEP = '
# CPU (allowed by gcc '-march' option: native, i486, pentium3, athlon, nocona, k8 ...)
-SARCH = i586
+OPTARCH = -march=i586
ADDCFLAGS = \
- -O4 -pipe -march=$(SARCH) -fomit-frame-pointer \
+ -O4 -pipe ${OPTARCH} -fomit-frame-pointer \
-std=c99 \
-W -Wall -Wextra -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
diff --git a/configs/altlinux-x86_64-gcc4.mk b/configs/altlinux-x86_64-gcc4.mk
new file mode 100644
index 0000000..1a60d24
--- /dev/null
+++ b/configs/altlinux-x86_64-gcc4.mk
@@ -0,0 +1,25 @@
+PREFIX = $(DESTDIR)/usr
+ETCDIR = $(DESTDIR)/etc/$(PROGLNAME)
+WWWDIR = $(DESTDIR)/var/www/html/$(PROGLNAME)
+TMPDIR = $(DESTDIR)/var/cache/$(PROGLNAME)
+LOCDIR = $(PREFIX)/share/$(PROGLNAME)
+DOCDIR = $(PREFIX)/share/doc/$(PROGLNAME)-$(PROGVERSION)
+LOGFILE = $(DESTDIR)/var/log/squid/access.log
+
+CC = gcc
+SORT = /bin/sort
+INSTALL = /usr/bin/install
+
+LARGEFILE = yes
+SATSEP = '
+
+# CPU (allowed by gcc '-march' option: native, i486, pentium3, athlon, nocona, k8 ...)
+OPTARCH =
+ADDCFLAGS = \
+ -O4 -pipe ${OPTARCH} -fomit-frame-pointer \
+ -std=c99 \
+ -W -Wall -Wextra -Wredundant-decls -Wnested-externs -Wstrict-prototypes \
+ -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual \
+ -Wreturn-type -Wswitch -Wshadow -Wcast-align -Wuninitialized \
+ -Wchar-subscripts -Wuninitialized -Wbad-function-cast -Wwrite-strings
+ADDLDFLAGS = --relax -mrelax