|
497 | 497 |
|
498 | 498 | # ---------------------------------------- |
499 | 499 |
|
500 | | -if [ $USE_PCRE = YES -o $PCRE != NONE ] && [ $PCRE != NO -a $PCRE != YES ]; then |
501 | | - # force pcre_version symbol to be required when PCRE is statically linked |
502 | | - case "$NGX_PLATFORM" in |
503 | | - Darwin:*) |
504 | | - ngx_feature="require defined symbols (-u)" |
505 | | - ngx_feature_name= |
506 | | - ngx_feature_path= |
507 | | - ngx_feature_libs="-Wl,-u,_strerror" |
508 | | - ngx_feature_run=no |
509 | | - ngx_feature_incs="#include <stdio.h>" |
510 | | - ngx_feature_test='printf("hello");' |
511 | | - |
512 | | - . auto/feature |
513 | | - |
514 | | - if [ $ngx_found = yes ]; then |
515 | | - CORE_LIBS="-Wl,-u,_pcre_version $CORE_LIBS" |
516 | | - fi |
517 | | - ;; |
518 | | - |
519 | | - *) |
520 | | - ngx_feature="require defined symbols (--require-defined)" |
521 | | - ngx_feature_name= |
522 | | - ngx_feature_path= |
523 | | - ngx_feature_libs="-Wl,--require-defined=strerror" |
524 | | - ngx_feature_run=no |
525 | | - ngx_feature_incs="#include <stdio.h>" |
526 | | - ngx_feature_test='printf("hello");' |
527 | | - |
528 | | - . auto/feature |
529 | | - |
530 | | - if [ $ngx_found = yes ]; then |
531 | | - CORE_LIBS="-Wl,--require-defined=pcre_version $CORE_LIBS" |
532 | | - |
533 | | - else |
534 | | - # ld 2.25 and below (--required-defined was introduced in 2.26) |
535 | | - ngx_feature="require defined symbols fallback (--undefined)" |
536 | | - ngx_feature_name= |
537 | | - ngx_feature_path= |
538 | | - ngx_feature_libs="-Wl,--undefined=strerror" |
539 | | - ngx_feature_run=no |
540 | | - ngx_feature_incs="#include <stdio.h>" |
541 | | - ngx_feature_test='printf("hello");' |
542 | | - |
543 | | - . auto/feature |
544 | | - |
545 | | - if [ $ngx_found = yes ]; then |
546 | | - CORE_LIBS="-Wl,--undefined=pcre_version $CORE_LIBS" |
547 | | - fi |
548 | | - fi |
549 | | - ;; |
550 | | - esac |
551 | | -fi |
552 | | - |
553 | | -# ---------------------------------------- |
554 | | - |
555 | 500 | USE_MD5=YES |
556 | 501 | USE_SHA1=YES |
557 | 502 |
|
|
0 commit comments