|
#define BOOST_PLATFORM "MorphOs"
#ifdef __cplusplus
#include <cstdlib>
#else
#include <stdlib.h>
#endif
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif
#include <boost/config/detail/posix_features.hpp> // not sure about this
...
#elif defined(__morphos__)
// MorphOs (put this before the AmigaOS statement)
# define BOOST_PLATFORM_CONFIG "boost/config/platform/morphos.hpp"
....
using gcc : power : /gg/bin/ppc-morphos-g++-11 ;
./b2 cxxflags="-std=c++17" cflags="-noixemul -D__morphos__" toolset=gcc-power link=static threading=single variant=release optimization=speed
--user-config=/home/andre/workspace/other/boost_1_87_0/user-config.jam
--build-dir=/tmp/boost-build
--prefix=/tmp/boost-install
--with-atomic
--with-chrono
--with-program_options
--with-system
--with-random
--with-test
--with-locale
--with-filesystem
--with-iostreams
install
operations.cpp:(.text+0x1804): undefined reference to `link'
/gg/lib/gcc-lib/ppc-morphos/11.3.0/../../../../ppc-morphos/bin/ld: /tmp/boost-1.87.0-morphos-ppc/lib/libboost_filesystem.a(operations.o): in function `_ZN5boost10filesystem6detail14create_symlinkERKNS0_4pathES4_PNS_6system10error_codeE':
operations.cpp:(.text+0x18a4): undefined reference to `symlink'
/gg/lib/gcc-lib/ppc-morphos/11.3.0/../../../../ppc-morphos/bin/ld: /tmp/boost-1.87.0-morphos-ppc/lib/libboost_filesystem.a(operations.o): in function `_ZN5boost10filesystem6detail15last_write_timeERKNS0_4pathElPNS_6system10error_codeE':
operations.cpp:(.text+0x3df4): undefined reference to `utime'
/gg/lib/gcc-lib/ppc-morphos/11.3.0/../../../../ppc-morphos/bin/ld: /tmp/boost-1.87.0-morphos-ppc/lib/libboost_filesystem.a(operations.o): in function `_ZN5boost10filesystem6detail12read_symlinkERKNS0_4pathEPNS_6system10error_codeE':
operations.cpp:(.text+0x40f0): undefined reference to `readlink'
/gg/lib/gcc-lib/ppc-morphos/11.3.0/../../../../ppc-morphos/bin/ld: operations.cpp:(.text+0x41e4): undefined reference to `readlink'
/gg/lib/gcc-lib/ppc-morphos/11.3.0/../../../../ppc-morphos/bin/ld: /tmp/boost-1.87.0-morphos-ppc/lib/libboost_filesystem.a(operations.o): in function `_ZN5boost10filesystem6detail12copy_symlinkERKNS0_4pathES4_PNS_6system10error_codeE':
operations.cpp:(.text+0x43f0): undefined reference to `symlink'
/gg/lib/gcc-lib/ppc-morphos/11.3.0/../../../../ppc-morphos/bin/ld: /tmp/boost-1.87.0-morphos-ppc/lib/libboost_filesystem.a(operations.o): in function `_ZN5boost10filesystem6detail5spaceERKNS0_4pathEPNS_6system10error_codeE':
operations.cpp:(.text+0x565c): undefined reference to `statfs'
/gg/lib/gcc-lib/ppc-morphos/11.3.0/../../../../ppc-morphos/bin/ld: operations.cpp:(.text+0x56f4): undefined reference to `statfs'
/gg/lib/gcc-lib/ppc-morphos/11.3.0/../../../../ppc-morphos/bin/ld: /tmp/boost-1.87.0-morphos-ppc/lib/libboost_filesystem.a(operations.o): in function `_ZN5boost10filesystem6detail4copyERKNS0_4pathES4_NS0_12copy_optionsEPNS_6system10error_codeE':
operations.cpp:(.text+0x8474): undefined reference to `symlink'
grep -rH "readlink" /gg/
...
grep: /gg/ppc-morphos/lib/libb32/libc.a: binary file matches
grep: /gg/ppc-morphos/lib/libc.a: binary file matches
...
/gg/includestd/unistd.h:int readlink __P((const char *, char *, int));
andre@drax:/gg/ppc-morphos/lib$ ar x libc.a
andre@drax:/gg/ppc-morphos/lib$ file readlink.o
readlink.o: ELF 32-bit MSB relocatable, PowerPC or cisco 4500, version 1 (SYSV), not stripped
|