Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##############
- Fine tuning of the installation directories
- 1) (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
- nonstandard directory <lib dir>
- export CPPFLAGS="-I$EPOCROOT/epoc32/include/libc -I$EPOCROOT/epoc32/include/variant/Symbian_OS.hrh -I$EPOCROOT/EPOC32/INCLUDE/GCCE/GCCE.h -I$EPOCROOT/epoc32/include/variant -Id:/program files/codesourcery/sourcery_codebench_lite_for_arm_symbianos/lib/gcc/arm-none-symbianelf/4.6.3/include"
- -D __MARM_INTERWORK__ -D NDEBUG -D _UNICODE -D __GCCE__ -D __SYMBIAN32__ -D __S60_50__ -D __S60_3X__ -D __SERIES60_3X__ -D __EPOC32__ -D __MARM__ -D __EABI__ -D __MARM_ARMV5__ -D S60 -D S60V3 -D __SUPPORT_CPP_EXCEPTIONS__ -D __MARM_THUMB__ -D __LIB__
- -D __EXE__
- 2)(C compiler command)&&(assembler compiler command (defaults to CC))
- CC= CCAS=
- 3)(C compiler flags) && (C++ compiler command)&&(assembler compiler flags (defaults to CFLAGS))&&(C++ compiler flags)
- export CFLAGS="-O2 -march=armv5t -Wno-format -fsigned-char -v -Wno-unused -c -Wno-multichar -Wno-reorder -nostdinc -pipe -mthumb-interwork -msoft-float -marm -mapcs -Wall -Wno-ctor-dtor-privacy -Wno-unknown-pragmas -version -fno-unit-at-a-time -fexceptions -fremove-local-statics -mfpu=vfp -mfloat-abi=soft -meabi=5 -o - |"
- CXX="" CCASFLAGS= CXXFLAGS="${CFLAGS}"
- 4)linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir>
- export LDFLAGS="-L$EPOCROOT/epoc32/release/armv5/urel "
- 5)libraries to pass to the linker, e.g. -l<library>
- export LIBS= -lusrt2_2.lib -ledll -leexe
- -llibgcc
- usrt2_2.lib edll.lib eexe.lib
- 6)C preprocessor
- CPP="-nostdinc"
- 7)C++ preprocessor
- CXXCPP="-nostdinc"
- 8)Настройка сборки
- configure --host=arm-none-symbianelf --prefix=$EPOCROOT/epoc32 --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --enable-extra-sgxxlite-multilibs --with-gnu-as --with-gnu-ld -enable-languages=c,c++ --enable-shared --enable-lto --disable-hosted-libstdcxx --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-ogg-includes=$EPOCROOT/epoc32/include/tremor --disable-3dnow --disable-altivec --disable-doxygen-docs --disable-xmms-plugin --disable-cpplibs --disable-oggtest --disable-rpath --disable-thorough-tests --disable-asm-optimizations --with-ogg-includes=$EPOCROOT/epoc32/include/tremor
- ##############
Advertisement
Add Comment
Please, Sign In to add comment