Open
Conversation
I wanted only library for djgpp. Compiler installed from rpm packages. Here is the build script: // mes.sh rm -rf /tmp/builddir_qjs PREFIX=/opt/qjs DESTDIR=$HOME/qjs LIBRARY_PATH="$PREFIX/lib" \ PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig" \ C_INCLUDE_PATH="$PREFIX/include" \ CFLAGS="-O2 -I$PREFIX/include" \ CXXFLAGS="-O2 -I$PREFIX/include" \ LDFLAGS="-L$PREFIX/lib" \ meson setup /tmp/builddir_qjs --cross-file cross/linux-djgpp.ini \ -Dprefix=$PREFIX \ -Dexamples=disabled \ -Dlibc=false \ -Dtests=disabled \ -Dlibonly=true || exit 1 meson compile -C /tmp/builddir_qjs || exit 2 mkdir -p $DESTDIR meson install -C /tmp/builddir_qjs --destdir $DESTDIR || exit 3 // linux-djgpp.ini [binaries] c = ['/usr/bin/i586-pc-msdosdjgpp-gcc', '-Wno-incompatible-pointer-types'] cpp = '/usr/bin/i586-pc-msdosdjgpp-g++' objc = '/usr/bin/i586-pc-msdosdjgpp-gcc' ar = '/usr/bin/i586-pc-msdosdjgpp-ar' pkg-config = '/usr/bin/pkg-config' strip = '/usr/bin/i586-pc-msdosdjgpp-strip' exe_wrapper = '/bin/true' ld = '/usr/bin/i586-pc-msdosdjgpp-ld' cmake = '/usr/bin/cmake' [properties] root = '/usr/i586-pc-msdosdjgpp' need_exe_wrapper = false [host_machine] system = 'dos' cpu_family = 'x86' cpu = 'i586' endian = 'little' [cmake] CMAKE_BUILD_WITH_INSTALL_RPATH = 'ON' CMAKE_FIND_ROOT_PATH_MODE_PROGRAM = 'NEVER' CMAKE_FIND_ROOT_PATH_MODE_LIBRARY = 'ONLY' CMAKE_FIND_ROOT_PATH_MODE_INCLUDE = 'ONLY' CMAKE_FIND_ROOT_PATH_MODE_PACKAGE = 'ONLY'
Contributor
|
Thank you! I'm going to hold off a bit since we have a larger PR modifying the meson build system currently in review and I think conflicts will arise. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I wanted only library for djgpp.
Compiler installed from rpm packages.
Here is the build script:
// mes.sh
rm -rf /tmp/builddir_qjs
PREFIX=/opt/qjs
DESTDIR=$HOME/qjs
LIBRARY_PATH="$PREFIX/lib"
PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig"
C_INCLUDE_PATH="$PREFIX/include"
CFLAGS="-O2 -I$PREFIX/include"
CXXFLAGS="-O2 -I$PREFIX/include"
LDFLAGS="-L$PREFIX/lib"
meson setup /tmp/builddir_qjs --cross-file cross/linux-djgpp.ini \ -Dprefix=$PREFIX
-Dexamples=disabled
-Dlibc=false
-Dtests=disabled
-Dlibonly=true || exit 1
meson compile -C /tmp/builddir_qjs || exit 2
mkdir -p $DESTDIR
meson install -C /tmp/builddir_qjs --destdir $DESTDIR || exit 3
// linux-djgpp.ini
[binaries]
c = ['/usr/bin/i586-pc-msdosdjgpp-gcc', '-Wno-incompatible-pointer-types']
cpp = '/usr/bin/i586-pc-msdosdjgpp-g++'
objc = '/usr/bin/i586-pc-msdosdjgpp-gcc'
ar = '/usr/bin/i586-pc-msdosdjgpp-ar'
pkg-config = '/usr/bin/pkg-config'
strip = '/usr/bin/i586-pc-msdosdjgpp-strip'
exe_wrapper = '/bin/true'
ld = '/usr/bin/i586-pc-msdosdjgpp-ld'
cmake = '/usr/bin/cmake'
[properties]
root = '/usr/i586-pc-msdosdjgpp'
need_exe_wrapper = false
[host_machine]
system = 'dos'
cpu_family = 'x86'
cpu = 'i586'
endian = 'little'
[cmake]
CMAKE_BUILD_WITH_INSTALL_RPATH = 'ON'
CMAKE_FIND_ROOT_PATH_MODE_PROGRAM = 'NEVER'
CMAKE_FIND_ROOT_PATH_MODE_LIBRARY = 'ONLY'
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE = 'ONLY'
CMAKE_FIND_ROOT_PATH_MODE_PACKAGE = 'ONLY'