move switch specs, linkscript & rules to libnx

This commit is contained in:
Dave Murphy 2018-01-26 23:43:41 +00:00 committed by plutoo
parent 1e04b22bae
commit 7ed122eefc
5 changed files with 10 additions and 10 deletions

View File

@ -1,8 +0,0 @@
%rename link old_link
*link:
%(old_link) -T switch.ld%s -pie --gc-sections -z text -z nodynamic-undefined-weak
*startfile:
crti%O%s crtbegin%O%s

View File

@ -94,10 +94,10 @@ export INCLUDE := $(foreach dir,$(INCLUDES),-I$(CURDIR)/$(dir)) \
all: lib/libnx.a lib/libnxd.a
dist-bin: all
@tar --exclude=*~ -cjf libnx-$(VERSION).tar.bz2 include lib default_icon.jpg
@tar --exclude=*~ -cjf libnx-$(VERSION).tar.bz2 include lib default_icon.jpg switch_rules switch.ld switch.specs
dist-src:
@tar --exclude=*~ -cjf libnx-src-$(VERSION).tar.bz2 include source data Makefile # Doxyfile Doxyfile.internal
@tar --exclude=*~ -cjf libnx-src-$(VERSION).tar.bz2 include source data Makefile switch_rules switch.ld switch.specs
dist: dist-src dist-bin

8
nx/switch.specs Normal file
View File

@ -0,0 +1,8 @@
%rename link old_link
*link:
%(old_link) -T %:getenv(DEVKITPRO /libnx/switch.ld) -pie --gc-sections -z text -z nodynamic-undefined-weak
*startfile:
crti%O%s crtbegin%O%s