ObjFW  Check-in [e7d0fb8ee1]

Overview
Comment:objfw-config: Add --static-libs.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: e7d0fb8ee1f1a8164a18e996f3474f254b99630e009efe34cf6eb7b92f313034
User & Date: js on 2013-01-28 22:48:37
Other Links: manifest | tags
Context
2013-02-05
22:24
Move abort() to make old GCCs happy. check-in: 737a82e1a4 user: js tags: trunk
2013-01-28
22:48
objfw-config: Add --static-libs. check-in: e7d0fb8ee1 user: js tags: trunk
22:40
OFHTTPServer: Fix missing #import. check-in: fe4a1fb193 user: js tags: trunk
Changes

Modified utils/objfw-config.in from [59f3090fde] to [0a70fe8249].

33
34
35
36
37
38
39

40
41
42
43
44
45
46
LDFLAGS_REEXPORT="@LDFLAGS_REEXPORT@"
LDFLAGS_RPATH="@LDFLAGS_RPATH@"
LIBS="-L${libdir} -lobjfw @LIBS@"
PLUGIN_CFLAGS="@PLUGIN_CFLAGS@"
PLUGIN_LDFLAGS="@PLUGIN_LDFLAGS@"
PLUGIN_SUFFIX="@PLUGIN_SUFFIX@"
PROG_SUFFIX="@EXEEXT@"

VERSION="@PACKAGE_VERSION@"

show_help() {
	cat <<__EOF__
objfw-config: Available arguments are:

	--all		Outputs all flags + libs







>







33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
LDFLAGS_REEXPORT="@LDFLAGS_REEXPORT@"
LDFLAGS_RPATH="@LDFLAGS_RPATH@"
LIBS="-L${libdir} -lobjfw @LIBS@"
PLUGIN_CFLAGS="@PLUGIN_CFLAGS@"
PLUGIN_LDFLAGS="@PLUGIN_LDFLAGS@"
PLUGIN_SUFFIX="@PLUGIN_SUFFIX@"
PROG_SUFFIX="@EXEEXT@"
STATIC_LIBS="${libdir}/libobjfw.a @LIBS@"
VERSION="@PACKAGE_VERSION@"

show_help() {
	cat <<__EOF__
objfw-config: Available arguments are:

	--all		Outputs all flags + libs
54
55
56
57
58
59
60

61
62
63
64
65
66
67
	--rpath		Outputs LDFLAGS for using rpath
	--libs		Outputs the required LIBS
	--lib-cflags	Outputs CFLAGS for building a library"
	--lib-ldflags	Outputs LDFLAGS for building a library"
	--lib-prefix	Outputs the prefix for libraries"
	--lib-suffix	Outputs the suffix for libraries"
	--prog-suffix	Outputs the suffix for binaries"

	--version	Outputs the installed version
__EOF__
	exit 0
}

test -z "$1" && show_help








>







55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
	--rpath		Outputs LDFLAGS for using rpath
	--libs		Outputs the required LIBS
	--lib-cflags	Outputs CFLAGS for building a library"
	--lib-ldflags	Outputs LDFLAGS for building a library"
	--lib-prefix	Outputs the prefix for libraries"
	--lib-suffix	Outputs the suffix for libraries"
	--prog-suffix	Outputs the suffix for binaries"
	--static-libs	Outputs the required LIBS to link ObjFW statically
	--version	Outputs the installed version
__EOF__
	exit 0
}

test -z "$1" && show_help

148
149
150
151
152
153
154



155
156
157
158
159
160
161
			;;
		--plugin-suffix)
			printf "%s" "$PLUGIN_SUFFIX"
			;;
		--prog-suffix)
			printf "%s" "$PROG_SUFFIX"
			;;



		--version)
			printf "%s" "$VERSION"
			;;
		*)
			echo "Invalid option: $1" 1>&2
			exit 1
			;;







>
>
>







150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
			;;
		--plugin-suffix)
			printf "%s" "$PLUGIN_SUFFIX"
			;;
		--prog-suffix)
			printf "%s" "$PROG_SUFFIX"
			;;
		--static-libs)
			printf "%s" "$STATIC_LIBS"
			;;
		--version)
			printf "%s" "$VERSION"
			;;
		*)
			echo "Invalid option: $1" 1>&2
			exit 1
			;;