Подскажите пожалуйста, как make.conf указывать опции CFLAGS для конкретного порта?
Опишу подробней:
Стоит тестовая система -CURRENT i386, с clang-3.6.1. Так вот до прихода optionsng, для отдельных портов можно было задавать опции простым способом:
Код: Выделить всё
.if ${.CURDIR} == "/usr/ports/devel/gettext-tools"
CFLAGS = -O0 -pipe -march=pentium-m
.endif
Код: Выделить всё
===>>> Currently installed version: gettext-tools-0.19.4
===>>> Port directory: /usr/ports/devel/gettext-tools
make: "/etc/make.conf" line 26: Unassociated shell command "CFLAGS = -O0 -pipe -march=pentium-m"
make: Fatal errors encountered -- cannot continue===>>> Gathering distinfo list for installed ports
make: "/etc/make.conf" line 26: Unassociated shell command "CFLAGS = -O0 -pipe -march=pentium-m"
make: Fatal errors encountered -- cannot continuemake: "/etc/make.conf" line 26: Unassociated shell command "CFLAGS = -O0 -pipe -march=pentium-m"
make: Fatal errors encountered -- cannot continue===>>> Launching 'make checksum' for devel/gettext-tools in background
make: make: ""/etc/make.conf/etc/make.conf" line 26: " line 26: Unassociated shell command "CFLAGS = -O0 -pipe -march=pentium-m"Unassociated shell command "CFLAGS = -O0 -pipe -march=pentium-m"
make: Fatal errors encountered -- cannot continuemake: Fatal errors encountered -- cannot continue
make: stopped in /usr/ports/devel/gettext-tools
===>>> Gathering dependency list for devel/gettext-tools from ports
make: "/etc/make.conf" line 26: Unassociated shell command "CFLAGS = -O0 -pipe -march=pentium-m"
make: Fatal errors encountered -- cannot continue
===>>> Cannot cd to make:
===>>> Aborting update
Код: Выделить всё
CFLAGS.gettext-tools = ...
Предваряя вопрос, зачем мне это надо, поясню:
Некоторые порты с clang'ом по крайней мере из -CURRENT'а не ставятся с любыми флагами оптимизации кроме -O0
И для таких я и хочу выделенно указать опции.