The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Поиск:  Каталог документации / Документация по FreeBSD / Руководства по FreeBSD на английском

15.13 Respect both CC and CXX

The port should respect both CC and CXX variables. If it does not, please add NO_PACKAGE=ignores either cc or cxx to the Makefile.

An example of a Makefile respecting both CC and CXX variables follows. Note the ?=:

    CC ?= gcc
    CXX ?= g++

Here is an example which respects neither CC nor CXX variables:

    CC = gcc
    CXX = g++

Both CC and CFLAGS variables can be defined on FreeBSD systems in /etc/make.conf. The first example defines a value if it was not previously set in /etc/make.conf, preserving any system-wide definitions. The second example clobbers anything previously defined.

For questions about the FreeBSD ports system, e-mail <[email protected]>.
For questions about this documentation, e-mail <[email protected]>.


Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру