Changeset cbfa153 for general/prog
- Timestamp:
- 07/17/2024 06:47:00 PM (2 months ago)
- Branches:
- 12.2, gimp3, lazarus, trunk, xry111/for-12.3, xry111/spidermonkey128
- Children:
- ad8b716
- Parents:
- 4304a5f
- Location:
- general/prog
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/llvm.xml
r4304a5f rcbfa153 290 290 cd build && 291 291 292 CC=gcc CXX=g++ \293 cmake -D CMAKE_INSTALL_PREFIX=/usr \294 -D CMAKE_SKIP_INSTALL_RPATH=ON \295 -D LLVM_ENABLE_FFI=ON \296 -D CMAKE_BUILD_TYPE=Release \297 -D LLVM_BUILD_LLVM_DYLIB=ON \298 -D LLVM_LINK_LLVM_DYLIB=ON \299 -D LLVM_ENABLE_RTTI=ON \300 -D LLVM_TARGETS_TO_BUILD="host;AMDGPU" \301 -D LLVM_BINUTILS_INCDIR=/usr/include \302 -D LLVM_INCLUDE_BENCHMARKS=OFF \303 -D CLANG_DEFAULT_PIE_ON_LINUX=ON \304 -D CLANG_CONFIG_FILE_SYSTEM_DIR=/etc/clang \305 -W no-dev -G Ninja .. &&292 CC=gcc CXX=g++ \ 293 cmake -D CMAKE_INSTALL_PREFIX=/usr \ 294 -D CMAKE_SKIP_INSTALL_RPATH=ON \ 295 -D LLVM_ENABLE_FFI=ON \ 296 -D CMAKE_BUILD_TYPE=Release \ 297 -D LLVM_BUILD_LLVM_DYLIB=ON \ 298 -D LLVM_LINK_LLVM_DYLIB=ON \ 299 -D LLVM_ENABLE_RTTI=ON \ 300 -D LLVM_TARGETS_TO_BUILD="host;AMDGPU" \ 301 -D LLVM_BINUTILS_INCDIR=/usr/include \ 302 -D LLVM_INCLUDE_BENCHMARKS=OFF \ 303 -D CLANG_DEFAULT_PIE_ON_LINUX=ON \ 304 -D CLANG_CONFIG_FILE_SYSTEM_DIR=/etc/clang \ 305 -W no-dev -G Ninja .. && 306 306 ninja</userinput></screen> 307 307 <!-- Commented out because myst-parser is not in BLFS and we cannot test … … 312 312 </para> 313 313 314 <screen remap="doc"><userinput>cmake -D LLVM_BUILD_DOCS=ON \315 -D LLVM_ENABLE_SPHINX=ON \316 -D SPHINX_WARNINGS_AS_ERRORS=OFF \317 -W no-dev -G Ninja .. &&314 <screen remap="doc"><userinput>cmake -D LLVM_BUILD_DOCS=ON \ 315 -D LLVM_ENABLE_SPHINX=ON \ 316 -D SPHINX_WARNINGS_AS_ERRORS=OFF \ 317 -W no-dev -G Ninja .. && 318 318 ninja docs-llvm-html docs-llvm-man</userinput></screen> 319 319 … … 440 440 441 441 <para> 442 <parameter>-D LLVM_ENABLE_FFI=ON</parameter>: This switch allows442 <parameter>-D LLVM_ENABLE_FFI=ON</parameter>: This switch allows 443 443 <application>LLVM</application> to use 444 444 <application>libffi</application>. … … 446 446 447 447 <para> 448 <parameter>-D LLVM_BUILD_LLVM_DYLIB=ON</parameter>: This switch builds448 <parameter>-D LLVM_BUILD_LLVM_DYLIB=ON</parameter>: This switch builds 449 449 the libraries as static and links all of them into an unique shared one. 450 450 This is the recommended way of building a shared library. … … 452 452 453 453 <para> 454 <parameter>-D CMAKE_BUILD_TYPE=Release</parameter>: This switch enables454 <parameter>-D CMAKE_BUILD_TYPE=Release</parameter>: This switch enables 455 455 compiler optimizations in order to speed up the code and reduce its size. 456 456 It also disables some compile checks which are not necessary on a … … 459 459 460 460 <para> 461 <parameter>-D LLVM_TARGETS_TO_BUILD="host;AMDGPU"</parameter>: This461 <parameter>-D LLVM_TARGETS_TO_BUILD="host;AMDGPU"</parameter>: This 462 462 switch enables building for the same target as the host, and also for 463 463 the r600 AMD GPU used by the Mesa r600 and radeonsi drivers. … … 470 470 471 471 <para> 472 <parameter>-D LLVM_LINK_LLVM_DYLIB=ON</parameter>: Used in conjunction with473 <parameter>-D LLVM_BUILD_LLVM_DYLIB=ON</parameter>, this switch enables472 <parameter>-D LLVM_LINK_LLVM_DYLIB=ON</parameter>: Used in conjunction with 473 <parameter>-D LLVM_BUILD_LLVM_DYLIB=ON</parameter>, this switch enables 474 474 linking the tools against the shared library instead of the static ones. 475 475 It slightly reduces their size and also ensures that llvm-config … … 478 478 479 479 <para> 480 <parameter>-D LLVM_ENABLE_RTTI=ON</parameter>: This switch is used to480 <parameter>-D LLVM_ENABLE_RTTI=ON</parameter>: This switch is used to 481 481 build LLVM with run-time type information. This is required for building 482 482 <xref linkend="mesa"/>. … … 484 484 485 485 <para> 486 <parameter>-D LLVM_BINUTILS_INCDIR=/usr/include</parameter>: This switch486 <parameter>-D LLVM_BINUTILS_INCDIR=/usr/include</parameter>: This switch 487 487 is used to tell the build system the location of binutils headers, 488 488 which were installed in LFS. This allows the building of … … 493 493 494 494 <para> 495 <parameter>-D LLVM_INCLUDE_BENCHMARKS=OFF</parameter>:495 <parameter>-D LLVM_INCLUDE_BENCHMARKS=OFF</parameter>: 496 496 is used to disable generation build targets for the LLVM 497 497 benchmarks. This option requires additional code that … … 500 500 501 501 <para> 502 <parameter>-D CLANG_DEFAULT_PIE_ON_LINUX=ON</parameter>: makes502 <parameter>-D CLANG_DEFAULT_PIE_ON_LINUX=ON</parameter>: makes 503 503 <option>-fpie</option> option the default when compiling programs. 504 504 Together with the <xref linkend="gASLR"/> feature enabled in the kernel, … … 507 507 508 508 <para> 509 <parameter>-D CLANG_CONFIG_FILE_SYSTEM_DIR=/etc/clang</parameter>:509 <parameter>-D CLANG_CONFIG_FILE_SYSTEM_DIR=/etc/clang</parameter>: 510 510 makes <command>clang</command> and <command>clang++</command> 511 511 search <filename class='directory'>/etc/clang</filename> for … … 514 514 515 515 <para> 516 <option>-D BUILD_SHARED_LIBS=ON</option>: if used instead of517 <parameter>-D LLVM_BUILD_LLVM_DYLIB=ON</parameter> and518 <parameter>-D LLVM_LINK_LLVM_DYLIB=ON</parameter>, builds all the516 <option>-D BUILD_SHARED_LIBS=ON</option>: if used instead of 517 <parameter>-D LLVM_BUILD_LLVM_DYLIB=ON</parameter> and 518 <parameter>-D LLVM_LINK_LLVM_DYLIB=ON</parameter>, builds all the 519 519 <application>LLVM</application> libraries (about 60) as shared 520 520 libraries instead of static. … … 522 522 523 523 <para> 524 <option>-D LLVM_ENABLE_DOXYGEN</option>: Enables the generation of524 <option>-D LLVM_ENABLE_DOXYGEN</option>: Enables the generation of 525 525 browsable HTML documentation if you have installed <xref 526 526 linkend="doxygen"/>. You should run <command>make doxygen-html</command> -
general/prog/lua.xml
r4304a5f rcbfa153 148 148 <screen><userinput>patch -Np1 -i ../lua-&lua-version;-shared_library-1.patch && 149 149 make linux</userinput></screen> 150 <!-- make MYCFLAGS="-D LUA_COMPAT_5_2 -DLUA_COMPAT_5_1" linux150 <!-- make MYCFLAGS="-D LUA_COMPAT_5_2 -D LUA_COMPAT_5_1" linux 151 151 The MYCFLAGS="" part was brought into the patch since optimization had to 152 152 be turned off. … … 199 199 200 200 <para> 201 <envar>MYCFLAGS="- DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1"</envar>: This201 <envar>MYCFLAGS="- DLUA_COMPAT_5_2 -D LUA_COMPAT_5_1"</envar>: This 202 202 environment variable includes compatibility layers with Lua 5.1 and 5.2 203 203 in the build. -
general/prog/rust.xml
r4304a5f rcbfa153 173 173 <xref linkend="libssh2"/>, 174 174 <xref linkend="llvm"/> 175 (built with -D LLVM_LINK_LLVM_DYLIB=ON so that rust can link to175 (built with -D LLVM_LINK_LLVM_DYLIB=ON so that rust can link to 176 176 system LLVM instead of building its shipped version), and 177 177 <xref linkend="sqlite"/>
Note:
See TracChangeset
for help on using the changeset viewer.