Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
8f7c26e3
Commit
8f7c26e3
authored
Aug 27, 2012
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: Use portable abstraction for linker/hostcc output file syntax
parent
d5683aba
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Makefile
Makefile
+2
-2
common.mak
common.mak
+1
-1
library.mak
library.mak
+2
-2
No files found.
Makefile
View file @
8f7c26e3
...
...
@@ -91,7 +91,7 @@ FF_DEP_LIBS := $(DEP_LIBS)
all
:
$(PROGS)
$(TOOLS)
:
%$(EXESUF): %.o
$(LD)
$(LDFLAGS)
-o
$@
$<
$(ELIBS)
$(LD)
$(LDFLAGS)
$(LD_O)
$<
$(ELIBS)
tools/cws2fws$(EXESUF)
:
ELIBS = -lz
...
...
@@ -135,7 +135,7 @@ endef
$(foreach
P,$(PROGS-yes),$(eval
$(call
DOPROG,$(P))))
$(PROGS)
:
%$(EXESUF): %.o cmdutils.o $(FF_DEP_LIBS)
$(LD)
$(LDFLAGS)
-o
$@
$
(
OBJS-
$*
)
cmdutils.o
$(FF_EXTRALIBS)
$(LD)
$(LDFLAGS)
$(LD_O)
$
(
OBJS-
$*
)
cmdutils.o
$(FF_EXTRALIBS)
OBJDIRS
+=
tools
...
...
common.mak
View file @
8f7c26e3
...
...
@@ -38,7 +38,7 @@ $(HOSTOBJS): %.o: %.c
$(call COMPILE,HOSTCC)
$(HOSTPROGS): %$(HOSTEXESUF): %.o
$(HOSTCC) $(HOSTLDFLAGS)
-o $@
$< $(HOSTLIBS)
$(HOSTCC) $(HOSTLDFLAGS)
$(HOSTCC_O)
$< $(HOSTLIBS)
$(OBJS): | $(sort $(dir $(OBJS)))
$(HOSTOBJS): | $(sort $(dir $(HOSTOBJS)))
...
...
library.mak
View file @
8f7c26e3
...
...
@@ -35,14 +35,14 @@ install-libs-$(CONFIG_SHARED): install-lib$(NAME)-shared
define RULES
$(EXAMPLES) $(TESTPROGS) $(TOOLS): %$(EXESUF): %.o
$$(LD) $(LDFLAGS)
-o $$@
$$^ -l$(FULLNAME) $(FFEXTRALIBS) $$(ELIBS)
$$(LD) $(LDFLAGS)
$$(LD_O)
$$^ -l$(FULLNAME) $(FFEXTRALIBS) $$(ELIBS)
$(SUBDIR)$(SLIBNAME): $(SUBDIR)$(SLIBNAME_WITH_MAJOR)
$(Q)cd ./$(SUBDIR) && $(LN_S) $(SLIBNAME_WITH_MAJOR) $(SLIBNAME)
$(SUBDIR)$(SLIBNAME_WITH_MAJOR): $(OBJS) $(SUBDIR)lib$(NAME).ver $(DEP_LIBS)
$(SLIB_CREATE_DEF_CMD)
$$(LD) $(SHFLAGS) $(LDFLAGS)
-o $$@
$$(filter %.o,$$^) $(FFEXTRALIBS) $(EXTRAOBJS)
$$(LD) $(SHFLAGS) $(LDFLAGS)
$$(LD_O)
$$(filter %.o,$$^) $(FFEXTRALIBS) $(EXTRAOBJS)
$(SLIB_EXTRA_CMD)
clean::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment