[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] build: Fix fuer .S-Dateien



! build: gas nennt die Ausgabedatei a.out, wenn man nichts anderes sagt.
  Etwas anderes sagen zu muessen laesst sich durch gcc -c vermeiden, der
  macht gleich das richtige.
---
 src/modules/c/build/build.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/c/build/build.c b/src/modules/c/build/build.c
index e2962bb..ace3260 100644
--- a/src/modules/c/build/build.c
+++ b/src/modules/c/build/build.c
@@ -52,7 +52,7 @@ static const char* cflags = "-c";
 
 static const char* fpcflags = "-n -Cn -CX -Tlost";
 static const char* nasmflags = "-felf -O99";
-static const char* gasflags = "-32";
+static const char* gasflags = "-m32 -c";
 
 static char* root_path;
 
@@ -235,7 +235,7 @@ static void do_build(struct build_dir* dir, const char* parent_include,
 
     printf("\r%s: Assemblieren (gas)...\033[K", dir->path);
     fflush(stdout);
-    compile(dir->path, dir->src_files[LANG_ASM_GAS], "as", gasflags, include);
+    compile(dir->path, dir->src_files[LANG_ASM_GAS], "gcc", gasflags, include);
 
     for (i = 0; (file = list_get_element_at(dir->src_files[LANG_ASM_NASM], i)); i++) {
         do_command(dir->path, "nasm", "%s %s", nasmflags, file->name);
-- 
1.6.0.2