All pastes #77951 Raw Edit

Miscellany

public text v1 · immutable
·published 2006-07-03 16:35 UTC
rendered paste body
ast04rt@32 freeswitch-mod_pjsip # ./fsxs foo --add-cflags="-DPJ_M_I386 -DPJ_LINUX -fPIC" --add-libs="-lpjsip -lpjsip-ua -lpjsip-simple -lpjsdp -lpjlib-util -lpj" mod_pjsip.so mod_pjsip.c mod_pjsip_sdp.c
Unknown command: foo
Usage:
        ./fsxs compile [options] <file1 ...>
        ./fsxs link    [options] <target> <file1 ...>
        ./fsxs build   [options] <target> <file1 ...>
        ./fsxs install [options] <file1 ...>
        ./fsxs show    <var1 ...>

Command description:
        compile: Compile source file(s) into object file(s)
        link:    Create module from object file(s)
        build:   Build module from source file(s) (compile + link)
        install: Install module(s) into freeswitch module directory
        show:    Show defined variable(s)

Options:
        --add-cflags  Append custom cflags   [compile, build]
        --set-cflags  Override cflags        [compile, build]

        --add-ldflags Append custom ldflags  [link, build]
        --set-ldflags Override ldflags       [link, build]
        --add-libs    Append additional libs [link, build]
        --set-libs    Override libs          [link, build]

        --destdir     Installation prefix    [install]

Examples:
        ./fsxs compile --add-cflags="-DFOO=1 -DBAR" mod_test.c mod_test2.c

        ./fsxs link --add-ldflags="-ltest" mod_test.so mod_test.o mod_test2.o

        ./fsxs build --add-cflags="-DFOO" --add-ldflags="-ltest" mod_test.so mod_test.c mod_test2.c