Skip to content

Commit fb650a6

Browse files
committed
Do not use -o argument for rcs
1 parent 473fa33 commit fb650a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/make.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ xbool_t SMake_WriteMake(smake_ctx_t *pCtx)
480480
XFile_Print(&file, "\t$(%s) $(%s)%s -c -o $(ODIR)/$@ $< $(LIBS)\n\n", pCompiler, pCFlags, pFPICOption);
481481
XFile_Print(&file, "$(NAME):$(OBJS)\n");
482482

483-
if (bStatic) XFile_Print(&file, "\t$(AR) rcs -o $(ODIR)/$(NAME) $(OBJECTS)\n");
483+
if (bStatic) XFile_Print(&file, "\t$(AR) rcs $(ODIR)/$(NAME) $(OBJECTS)\n");
484484
else if (bShared) XFile_Print(&file, "\t$(%s) -shared -o $(ODIR)/$(NAME) $(OBJECTS)\n", pCompiler);
485485
else if (!bLDLibs) XFile_Print(&file, "\t$(%s) $(%s) -o $(ODIR)/$(NAME) $(OBJECTS) $(LIBS)\n", pCompiler, pCFlags);
486486
else XFile_Print(&file, "\t$(%s) $(%s) -o $(ODIR)/$(NAME) $(OBJECTS) $(LD_LIBS) $(LIBS)\n", pCompiler, pCFlags);

0 commit comments

Comments
 (0)