Skip to content

Commit

Permalink
Merge pull request #2212 from ghaerr/elksemu
Browse files Browse the repository at this point in the history
[build] Fix CI build failing on elksemu
  • Loading branch information
ghaerr authored Feb 1, 2025
2 parents 6346f66 + 277c5ee commit 5ed8add
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions elksemu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ ifndef TOPDIR
$(error TOPDIR is not defined)
endif

# Use BCC to make a tiny static a.out version.
ifeq ($(CC),bcc)
CFLAGS=-Ml -ansi -s $(DEFS)
endif
ifeq ($(CC),ncc)
CFLAGS=-Ml -ansi -s $(DEFS)
endif

# Default
ifeq ($(CFLAGS),)
CFLAGS=-O $(DEFS)
Expand All @@ -23,6 +15,8 @@ endif
# USE_VM86 - uses the kernel syscall vm86, note that this only works for x86-32 Linux systems
# USE_X86EMU - uses the libx86emu CPU emulation library
# USE_PTRACE - start a 16-bit protected mode child process and controls it via ptrace calls
USE_PTRACE=1

ifdef USE_VM86
CFLAGS+=-m32 -DUSE_VM86
else
Expand All @@ -33,7 +27,6 @@ ifdef USE_PTRACE
CFLAGS+=-DUSE_PTRACE=1
else
$(error One of USE_PTRACE, USE_X86EMU, USE_VM86 must be defined)
USE_PTRACE=1
endif
endif
endif
Expand Down

0 comments on commit 5ed8add

Please sign in to comment.