003-use-ldflags.patch 863 B

1234567891011121314151617181920212223242526
  1. --- a/makefile.rules
  2. +++ b/makefile.rules
  3. @@ -131,19 +131,20 @@ exec_always:
  4. @echo "LIBS = ${LIBS}"
  5. @echo "EXEC_FILE = ${EXEC_FILE}"
  6. @echo "BUILD_DIR = ${BUILD_DIR}"
  7. + @echo "LDFLAGS = ${LDFLAGS}"
  8. clean:
  9. rm -f ${OBJ_FILES_ELFTOSB2} ${OBJ_FILES_SBTOOL} ${OBJ_FILES_KEYGEN} \
  10. ${EXEC_FILE_ELFTOSB2} ${EXEC_FILE_SBTOOL} ${EXEC_FILE_KEYGEN}
  11. elftosb: ${OBJ_FILES_ELFTOSB2}
  12. - gcc ${OBJ_FILES_ELFTOSB2} ${LIBS} -o ${EXEC_FILE_ELFTOSB2}
  13. + gcc ${OBJ_FILES_ELFTOSB2} ${LIBS} ${LDFLAGS} -o ${EXEC_FILE_ELFTOSB2}
  14. sbtool: ${OBJ_FILES_SBTOOL}
  15. - gcc ${OBJ_FILES_SBTOOL} ${LIBS} -o ${EXEC_FILE_SBTOOL}
  16. + gcc ${OBJ_FILES_SBTOOL} ${LIBS} ${LDFLAGS} -o ${EXEC_FILE_SBTOOL}
  17. keygen: ${OBJ_FILES_KEYGEN}
  18. - gcc ${OBJ_FILES_KEYGEN} ${LIBS} -o ${EXEC_FILE_KEYGEN}
  19. + gcc ${OBJ_FILES_KEYGEN} ${LIBS} ${LDFLAGS} -o ${EXEC_FILE_KEYGEN}
  20. #ifeq ("${UNAMES}", "Linux")