Magellan Linux

Diff of /smage/trunk/core/llvm/llvm-3.7.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 7909 by niro, Mon Nov 23 11:01:13 2015 UTC revision 7910 by niro, Mon Nov 23 11:49:14 2015 UTC
# Line 95  src_prepare() Line 95  src_prepare()
95    
96   # ugly hack - fix broken path retrieval on magellan - fixme!   # ugly hack - fix broken path retrieval on magellan - fixme!
97   all-abis 'sed -i "s:CurrentPath(GetExecutablePath(argv\[0\]).str()):CurrentPath(\"/usr/bin/llvm-config\"):" tools/llvm-config/llvm-config.cpp || die'   all-abis 'sed -i "s:CurrentPath(GetExecutablePath(argv\[0\]).str()):CurrentPath(\"/usr/bin/llvm-config\"):" tools/llvm-config/llvm-config.cpp || die'
98    
99     # build outside of the tree
100     all-abis 'mkdir ${SRCDIR}/build || die'
101  }  }
102    
103  src_compile()  src_compile()
104  {  {
105   local myopts   local myopts
106     SRCSUBDIR="build"
107    
108   # enable pic on 64bit arches   # enable pic on 64bit arches
109   [[ ${ARCH} = x86_64 ]] && myopts+="--enable-pic"   [[ ${ARCH} = x86_64 ]] && myopts+="--enable-pic"
# Line 134  src_compile() Line 138  src_compile()
138    
139  src_install_llvm-libs()  src_install_llvm-libs()
140  {  {
141     SRCSUBDIR="build"
142    
143   # install only libs   # install only libs
144   mmake DESTDIR=${BINDIR} install-libs || die   mmake DESTDIR=${BINDIR} install-libs || die
145    
# Line 155  src_install_llvm-libs() Line 161  src_install_llvm-libs()
161    
162  src_install_llvm()  src_install_llvm()
163  {  {
164     SRCSUBDIR="build"
165    
166   mmake DESTDIR=${BINDIR} install || die   mmake DESTDIR=${BINDIR} install || die
167    
168   # install pre-generated man-pages   # install pre-generated man-pages

Legend:
Removed from v.7909  
changed lines
  Added in v.7910