|
|
|
@ -12,14 +12,19 @@
|
|
|
|
|
# GNU General Public License can be found in the file COPYING. |
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
|
|
|
|
LD=$CC |
|
|
|
|
|
|
|
|
|
# linux26 optimization |
|
|
|
|
var_append makeopt ' ' "TARGET=linux26" |
|
|
|
|
|
|
|
|
|
# use pcre for regex (recommended) |
|
|
|
|
if pkginstalled pcre; then |
|
|
|
|
pkgprefix -t pcre |
|
|
|
|
var_append makeopt ' ' "USE_PCRE=1" |
|
|
|
|
# it is recommended to link in pcre statically |
|
|
|
|
var_append makeopt ' ' "USE_STATIC_PCRE=1" |
|
|
|
|
# use the right location for pcre especially while cross-compiling |
|
|
|
|
var_append makeopt ' ' "PCREDIR=$root/$( pkgprefix pcre )" |
|
|
|
|
else |
|
|
|
|
echo_warning "PCRE is not available but recommended for regex support!" |
|
|
|
|
fi |
|
|
|
|