Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
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
nanahira
Dnsmasq
Commits
c979fa04
Commit
c979fa04
authored
Jan 21, 2014
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide for static library linking.
parent
c5f4ec7d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
4 deletions
+32
-4
bld/pkg-wrapper
bld/pkg-wrapper
+19
-3
src/config.h
src/config.h
+13
-1
No files found.
bld/pkg-wrapper
View file @
c979fa04
...
...
@@ -2,10 +2,26 @@
search
=
$1
shift
pkg
=
$1
shift
op
=
$1
shift
if
grep
"^
\#
[[:space:]]*define[[:space:]]*
$search
"
config.h
>
/dev/null 2>&1
||
\
grep
$search
>
/dev/null 2>&1
;
then
exec
$*
in
=
`
cat
`
if
grep
"^
\#
[[:space:]]*define[[:space:]]*
${
search
}
_STATIC"
config.h
>
/dev/null 2>&1
||
\
echo
$in
|
grep
${
search
}
_STATIC
>
/dev/null 2>&1
;
then
if
[
$op
=
"--libs"
]
;
then
pkg
=
`
$pkg
--static
$op
$*
`
echo
"-Wl,-Bstatic
$pkg
-Wl,-Bdynamic"
exit
0
fi
fi
if
grep
"^
\#
[[:space:]]*define[[:space:]]*
$search
"
config.h
>
/dev/null 2>&1
||
\
echo
$in
|
grep
$search
>
/dev/null 2>&1
;
then
pkg
=
`
$pkg
$op
$*
`
echo
"
$pkg
"
fi
src/config.h
View file @
c979fa04
...
...
@@ -124,6 +124,11 @@ RESOLVFILE
*/
/* Defining this builds a binary which handles time differently and works better on a system without a
stable RTC (it uses uptime, not epoch time) and writes the DHCP leases file less often to avoid flash wear.
*/
/* #define HAVE_BROKEN_RTC */
/* The default set of options to build. Built with these options, dnsmasq
has no library dependencies other than libc */
...
...
@@ -134,8 +139,15 @@ RESOLVFILE
#define HAVE_SCRIPT
#define HAVE_AUTH
#define HAVE_IPSET
/* Build options which require external libraries.
Defining HAVE_<opt>_STATIC as _well_ as HAVE_<opt> will link the library statically.
You can use "make COPTS=-DHAVE_<opt>" instead of editing these.
*/
/* #define HAVE_LUASCRIPT */
/* #define HAVE_BROKEN_RTC */
/* #define HAVE_DBUS */
/* #define HAVE_IDN */
/* #define HAVE_CONNTRACK */
...
...
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