Skip to content

Commit 497f132

Browse files
committed
Fix relative include in userspace comp
1 parent dc6325a commit 497f132

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/hal/utils/halcompile.g

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,9 @@ def build_usr(tempdir, filename, mode, origfilename):
795795
makefile = os.path.join(tempdir, "Makefile")
796796
f = open(makefile, "w")
797797
print("%s: %s" % (binname, filename), file=f)
798-
print("\t$(CC) -I$(EMC2_HOME)/include -I/usr/include/linuxcnc -URTAPI -U__MODULE__ -DULAPI -Os %s -o $@ $< -Wl,-rpath,$(LIBDIR) -L$(LIBDIR) -llinuxcnchal %s" % (
798+
print("\t$(CC) -I%s -I$(EMC2_HOME)/include -I/usr/include/linuxcnc -URTAPI -U__MODULE__ -DULAPI -Os %s -o $@ $< -Wl,-rpath,$(LIBDIR) -L$(LIBDIR) -llinuxcnchal %s" % (
799+
800+
os.path.abspath(os.path.dirname(origfilename)),
799801
options.get("extra_compile_args", ""),
800802
options.get("extra_link_args", "")), file=f)
801803
print("include %s" % find_modinc(), file=f)

0 commit comments

Comments
 (0)