wolfcw / libfaketime

libfaketime modifies the system time for a single application
https://github.com/wolfcw/libfaketime
GNU General Public License v2.0
2.62k stars 319 forks source link

32 bit, wine, compiling with CFLAGS=-m32 LDFLAGS=-m32 make no success #432

Open fabiodl opened 1 year ago

fabiodl commented 1 year ago

I am compiling using CFLAGS=-m32 LDFLAGS=-m32 make but when I run WINEARCH=win32 WINEPREFIX=/home/$USER/.wine32 LD_PRELOAD=/home/user/git/libfaketime/src/libfaketime.so.1 wine cmd.exe I get ERROR: ld.so: object '/home/user/git/libfaketime/src/libfaketime.so.1' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.

note: if I compile with no flags I get ERROR: ld.so: object '/home/fabio/git/libfaketime/src/libfaketime.so.1' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

If I compile with -DMULTI_ARCH in CFLAGS and LDFLAGS I still get ERROR: ld.so: object '/home/fabio/git/libfaketime/src/libfaketime.so.1' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.

distro: manjaro