Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add configurable WINDRES variable to wincon/Makefile #69

Closed
elmarco opened this issue Aug 14, 2019 · 3 comments
Closed

Please add configurable WINDRES variable to wincon/Makefile #69

elmarco opened this issue Aug 14, 2019 · 3 comments

Comments

@elmarco
Copy link

elmarco commented Aug 14, 2019

When using cross-compilers, windres has various prefixes. A patch like that helps:

diff --git a/wincon/Makefile b/wincon/Makefile
index 6c5808f..46e0c34 100644
--- a/wincon/Makefile
+++ b/wincon/Makefile
@@ -30,6 +30,7 @@ CC = gcc
AR = ar
STRIP = strip
LINK = gcc
+WINDRES = windres

ifeq ($(DEBUG),Y)
CFLAGS = -g -Wall -DPDCDEBUG
@@ -87,7 +88,7 @@ $(LIBCURSES) : $(LIBOBJS) $(PDCOBJS) $(RESOURCE)
$(LIBEXE) $(LIBFLAGS) $@ $?

pdcurses.o: $(common)/pdcurses.rc

  • windres -i $(common)/pdcurses.rc pdcurses.o
  • $(WINDRES) -i $(common)/pdcurses.rc pdcurses.o

$(LIBOBJS) $(PDCOBJS) : $(PDCURSES_HEADERS)
$(PDCOBJS) : $(PDCURSES_WIN_H)

@wmcbrine
Copy link
Owner

OK.

@wmcbrine
Copy link
Owner

f3a0ce5

@elmarco
Copy link
Author

elmarco commented Aug 14, 2019

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants