Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
17b1d24d
Commit
17b1d24d
authored
Aug 08, 2011
by
Rémi Denis-Courmont
Committed by
Rémi Denis-Courmont
Aug 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: add HOSTVARS_PIC to force PIC build (for CMake)
parent
f70d1cac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
contrib/src/main.mak
contrib/src/main.mak
+17
-13
No files found.
contrib/src/main.mak
View file @
17b1d24d
...
...
@@ -147,19 +147,6 @@ endif
#
# Common helpers
#
HOSTVARS
:=
CPPFLAGS
=
"
$(CPPFLAGS)
"
HOSTVARS
+=
CC
=
"
$(CC)
"
HOSTVARS
+=
CFLAGS
=
"
$(CFLAGS)
"
HOSTVARS
+=
CXX
=
"
$(CXX)
"
HOSTVARS
+=
CXXFLAGS
=
"
$(CXXFLAGS)
"
HOSTVARS
+=
LD
=
"
$(LD)
"
HOSTVARS
+=
LDFLAGS
=
"
$(LDFLAGS)
"
HOSTVARS
+=
AR
=
"
$(AR)
"
HOSTVARS
+=
RANLIB
=
"
$(RANLIB)
"
HOSTVARS
+=
STRIP
=
"
$(STRIP)
"
HOSTVARS
+=
PATH
=
"
$(PREFIX)
/bin:
$(PATH)
"
HOSTVARS_AR
+=
AR
=
"
$(AR)
rcvu"
HOSTCONF
:=
--prefix
=
"
$(PREFIX)
"
HOSTCONF
+=
--build
=
"
$(BUILD)
"
--host
=
"
$(HOST)
"
--target
=
"
$(HOST)
"
HOSTCONF
+=
--program-prefix
=
""
...
...
@@ -167,10 +154,27 @@ HOSTCONF += --program-prefix=""
HOSTCONF
+=
--enable-static
--disable-shared
--disable-dependency-tracking
ifdef
HAVE_WIN32
HOSTCONF
+=
--without-pic
PIC
:=
else
HOSTCONF
+=
--with-pic
PIC
:=
-fPIC
endif
HOSTTOOLS
:=
\
CC
=
"
$(CC)
"
CXX
=
"
$(CXX)
"
LD
=
"
$(LD)
"
\
AR
=
"
$(AR)
"
RANLIB
=
"
$(RANLIB)
"
STRIP
=
"
$(STRIP)
"
\
PATH
=
"
$(PREFIX)
/bin:
$(PATH)
"
HOSTVARS
:=
$(HOSTTOOLS)
\
CPPFLAGS
=
"
$(CPPFLAGS)
"
\
CFLAGS
=
"
$(CFLAGS)
"
\
CXXFLAGS
=
"
$(CXXFLAGS)
"
\
LDFLAGS
=
"
$(LDFLAGS)
"
HOSTVARS_PIC
:=
$(HOSTTOOLS)
\
CPPFLAGS
=
"
$(CPPFLAGS)
$(PIC)
"
\
CFLAGS
=
"
$(CFLAGS)
$(PIC)
"
\
CXXFLAGS
=
"
$(CXXFLAGS)
$(PIC)
"
\
LDFLAGS
=
"
$(LDFLAGS)
"
download_git
=
\
rm
-Rf
$
(
@:.tar.xz
=)
&&
\
$(GIT)
clone
$
(
2:%
=
--branch
%
)
$(1)
$
(
@:.tar.xz
=)
&&
\
...
...
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