X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=WCudaMSE%2FBUILDER%2Fmakefile%2Fprivate%2Fcpp%2Fgcc_arm.mk;fp=WCudaMSE%2FBUILDER%2Fmakefile%2Fprivate%2Fcpp%2Fgcc_arm.mk;h=cc6add9a9ad6e7f4cc0deb396e2c520389cd8c26;hb=8d08c12b29c2a14684f35c023ee39e694bb80d25;hp=0000000000000000000000000000000000000000;hpb=226de81f7e1f1fbf4ac79d0d089e8a05ec7159a0;p=GPU.git diff --git a/WCudaMSE/BUILDER/makefile/private/cpp/gcc_arm.mk b/WCudaMSE/BUILDER/makefile/private/cpp/gcc_arm.mk new file mode 100755 index 0000000..cc6add9 --- /dev/null +++ b/WCudaMSE/BUILDER/makefile/private/cpp/gcc_arm.mk @@ -0,0 +1,61 @@ +# Version : 0.0.6 +# Date : 20.01.2014 +# Author : Cedric.Bilat@he-arc.ch + + +ifndef __GCC_ARM_MK__ +__GCC_ARM_MK__=true + +############################################## +# Variables # +############################################## + +######## +#arm # +######## + +ifeq (${ARCH},arm) + + ARM=true + + # rpath-link : begin + # + # Context: + # liba.so depend de libb.so + # on link que liba.so avec + # -la + # Probleme: + # linker pas content car trouve pas lib.so + # warning ou carrement refuse linker! + # + # Solution: + # Mettre le folder contenant libb.so dans -rpathlink + # + # link: + # http://ftp.gnu.org/pub/old-gnu/Manuals/ld-2.9.1/html_node/ld_3.html + # + ESPACE:=# + ESPACE+=#astice de guere + + RPATH_LINK:=$(strip ${RPATH_LINK})#replaces each internal sequence of one or more whitespace characters with a single space + RPATH_LINK:=$(subst ${ESPACE},:,${RPATH_LINK})# ESPACE -> : + + ifdef RPATH_LINK + RPATH_LINK:=${RPATH_LINK}:/opt/kayla/system/lib#ici pour garantir unicite,si manque warning only, pas error + RPATH_LINK:= -rpath-link=${RPATH_LINK}#-rpath-link pourrait apparaitre plusieurs fois, + override LDFLAGS:= ${RPATH_LINK} ${LDFLAGS} + override LDFLAGS:= -Xlinker ${LDFLAGS}#-Xlinker doit apparaitre a gauche de -rpath-link. exemple: -Xlinker -rpath-link= + endif + #rpath-link : end + + override CXXFLAGS+= ${ARM_CXXFLAGS} + +endif + + +############################################# +# END # +############################################# + +endif#__GCC_ARM_MK__ +