xvnkb-0.2.9a-ldflags.patch 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. diff --git a/Makefile.common b/Makefile.common
  2. index 06f0b78..d9f8976 100644
  3. --- a/Makefile.common
  4. +++ b/Makefile.common
  5. @@ -19,10 +19,10 @@ all: do-it-all
  6. $(CC) -fpic $(CFLAGS) $(FPTR) $(VK_OPT) -DVERSION=\"$(VERSION)\" -Wall -I$(XLIB_INC) -c $<
  7. $(CORE): $(CORE_OBJS)
  8. - $(CC) $(CFLAGS) $(DLFLAGS) $(CORE_OBJS) -o $@ -L$(XLIB_PATH) $(LIBDL)
  9. + $(CC) $(CFLAGS) $(DLFLAGS) $(CORE_OBJS) -o $@ -L$(XLIB_PATH) $(LIBDL) $(LDFLAGS)
  10. $(GUI): $(GUI_OBJS)
  11. - $(CC) $(CFLAGS) $(GUI_OBJS) -o $@ -L$(XLIB_PATH) $(LIBS) $(XFT_LIBS)
  12. + $(CC) $(CFLAGS) $(GUI_OBJS) -o $@ -L$(XLIB_PATH) $(LIBS) $(XFT_LIBS) $(LDFLAGS)
  13. main: $(CORE) $(GUI)
  14. @echo >/dev/null
  15. diff --git a/tools/Makefile.common b/tools/Makefile.common
  16. index fe16cc1..16ec511 100644
  17. --- a/tools/Makefile.common
  18. +++ b/tools/Makefile.common
  19. @@ -16,10 +16,10 @@ all: do-it-all
  20. $(CC) $(CFLAGS) $(DEFS) -Wall -I$(XLIB_INC) -c $<
  21. xvnkb_ctrl: $(CONTROL_OBJS)
  22. - $(CC) $(CFLAGS) -o $@ $(CONTROL_OBJS) -L$(XLIB_PATH) $(LIBS)
  23. + $(CC) $(CFLAGS) -o $@ $(CONTROL_OBJS) -L$(XLIB_PATH) $(LIBS) $(LDFLAGS)
  24. xvnkb_setup: $(SETUP_OBJS)
  25. - $(CC) $(CFLAGS) -o $@ $(SETUP_OBJS) -L$(XLIB_PATH) $(LIBS) $(XFT_LIBS)
  26. + $(CC) $(CFLAGS) -o $@ $(SETUP_OBJS) -L$(XLIB_PATH) $(LIBS) $(XFT_LIBS) $(LDFLAGS)
  27. main-tools: $(TOOLS)