Menu

[21d594]: / nginx-clojure-embed / src / c / config  Maximize  Restore  History

Download this file

28 lines (21 with data), 579 Bytes

NGX_ADDON_SRCS="$NGX_ADDON_SRCS \
		$ngx_addon_dir/ngx_http_clojure_embed.c \
"
USE_SHA1=YES

CFLAGS="$JNI_INCS \
        -I \"${NGINX_CLOJURE_SRC}/src/c\"  \
        $CFLAGS"
JNI_INCS_INCLUDED=YES
nginx_clojure_embed_link_options="-share -fvisibility=hidden"

case "$NGX_PLATFORM" in
    win32)
        nginx_clojure_embed_link_options="-LD"
    ;;
    
    *)
        CFLAGS="-fpic \
        -fvisibility=hidden \
        $CFLAGS"
        nginx_clojure_embed_link_options="-shared -fvisibility=hidden"
    ;;

esac

CORE_LIBS="$CORE_LIBS ${nginx_clojure_embed_link_options}";