Commit 79ed9a0c authored by jhugues's avatar jhugues
Browse files

* Add support for USER_CFLAGS and USER_LDFLAGS

	  For ticket 213



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/ocarina@3141 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 05b6a41f
...@@ -232,12 +232,14 @@ package body Ocarina.Backends.PO_HI_Ada is ...@@ -232,12 +232,14 @@ package body Ocarina.Backends.PO_HI_Ada is
& " \"); & " \");
Write_Char (ASCII.HT); Write_Char (ASCII.HT);
Write_Str (" $(GNATMAKE) -x -P$(PROJECT_FILE) -XTARGET=$(TARGET)" Write_Str (" $(GNATMAKE) -x -P$(PROJECT_FILE) -XTARGET=$(TARGET)"
& " -XBUILD=$(BUILD) -XCGCTRL=$(CGCTRL)"); & " -XBUILD=$(BUILD) -XCGCTRL=$(CGCTRL) ${USER_CFLAGS}");
-- If there are C source or C libraries, there will be more -- If there are C source or C libraries, there will be more
-- options. -- options.
Write_Str (" -largs $(EXTERNAL_OBJECTS) ${C_OBJECTS}"); Write_Str
(" -largs $(EXTERNAL_OBJECTS) ${C_OBJECTS} ${USER_LDFLAGS}");
Write_Eol; Write_Eol;
if Execution_Platform = Platform_LEON_GNAT then if Execution_Platform = Platform_LEON_GNAT then
...@@ -258,7 +260,8 @@ package body Ocarina.Backends.PO_HI_Ada is ...@@ -258,7 +260,8 @@ package body Ocarina.Backends.PO_HI_Ada is
-- If there are C source or C libraries, there will be more -- If there are C source or C libraries, there will be more
-- options. -- options.
Write_Str (" -largs $(EXTERNAL_OBJECTS) ${C_OBJECTS}"); Write_Str
(" -largs $(EXTERNAL_OBJECTS) ${C_OBJECTS} ${USER_LDFLAGS}");
Write_Eol; Write_Eol;
end if; end if;
else else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment