root/trunk/llmozlib2/build-linux-llmozlib.sh

Revision 23, 0.7 kB (checked in by tofu.linden, 1 year ago)

-fno-stack-protector

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1 #!/bin/bash
2 # This script builds llmozlib itself.  This should happen after
3 # mozilla has been built and copy_products_linux.sh has been run.
4
5 CXX='g++-4.1'
6 MOZARCH='i686-linux'
7 SRCS='llembeddedbrowser.cpp llembeddedbrowserwindow.cpp llmozlib2.cpp'
8
9 #------------------------
10
11 LIBNAME=libllmozlib2
12 OBJS=`echo ${SRCS} | sed s/\\.cpp/.o/g`
13 INCS_LINE="`find libraries/${MOZARCH}/include -type d | sed s/^/-I/`"
14 DEFS='-DMOZILLA_INTERNAL_API -DLL_LINUX=1'
15 OPTS='-fno-stack-protector -ggdb -fvisibility=hidden'
16
17 rm -f ${LIBNAME}.a ${OBJS}
18
19 for source in ${SRCS} ; do
20     ${CXX} ${OPTS} ${DEFS} ${INCS_LINE} -c ${source}
21 done
22
23 ar rcs ${LIBNAME}.a ${OBJS}
24
25 ls -la ${LIBNAME}.a
26
27
Note: See TracBrowser for help on using the browser.