Port the popt argument parsing library
This is required for the sgdisk tool.
This commit is contained in:
committed by
Norman Feske
parent
a9f90eb1d5
commit
3873daff94
3
lib/import/import-popt.mk
Normal file
3
lib/import/import-popt.mk
Normal file
@@ -0,0 +1,3 @@
|
||||
POPT_DIR := $(call select_from_ports,popt)/src/lib/popt
|
||||
|
||||
INC_DIR += $(POPT_DIR)
|
||||
21
lib/mk/popt.mk
Normal file
21
lib/mk/popt.mk
Normal file
@@ -0,0 +1,21 @@
|
||||
POPT_DIR := $(call select_from_ports,popt)/src/lib/popt
|
||||
|
||||
LIBS += libc
|
||||
|
||||
SRC_C := lookup3.c
|
||||
SRC_C += popt.c
|
||||
SRC_C += poptconfig.c
|
||||
SRC_C += popthelp.c
|
||||
SRC_C += poptint.c
|
||||
SRC_C += poptparse.c
|
||||
SRC_C += tdict.c
|
||||
|
||||
CC_C_OPT += -Wno-implicit-function-declaration -Wno-unused-but-set-variable -Wno-unused-variable
|
||||
|
||||
CC_CXX_WARN_STRICT =
|
||||
|
||||
INC_DIR += $(POPT_DIR)
|
||||
|
||||
vpath %.c $(POPT_DIR)
|
||||
|
||||
SHARED_LIB = 1
|
||||
46
lib/symbols/popt
Normal file
46
lib/symbols/popt
Normal file
@@ -0,0 +1,46 @@
|
||||
poptAddAlias T
|
||||
poptAddItem T
|
||||
poptAliasOptions B 48
|
||||
poptBadOption T
|
||||
poptBitsAdd T
|
||||
poptBitsArgs T
|
||||
poptBitsChk T
|
||||
poptBitsClr T
|
||||
poptBitsDel T
|
||||
poptBitsIntersect T
|
||||
poptBitsUnion T
|
||||
poptConfigFileToString T
|
||||
poptDupArgv T
|
||||
poptFini T
|
||||
poptFreeContext T
|
||||
poptGetArg T
|
||||
poptGetArgs T
|
||||
poptGetContext T
|
||||
poptGetInvocationName T
|
||||
poptGetNextOpt T
|
||||
poptGetOptArg T
|
||||
poptHelpOptions D 192
|
||||
poptHelpOptionsI18N D 8
|
||||
poptInit T
|
||||
poptJlu32lpair T
|
||||
poptParseArgvString T
|
||||
poptPeekArg T
|
||||
poptPrintHelp T
|
||||
poptPrintUsage T
|
||||
poptReadConfigFile T
|
||||
poptReadConfigFiles T
|
||||
poptReadDefaultConfig T
|
||||
poptReadFile T
|
||||
poptResetContext T
|
||||
poptSaneFile T
|
||||
poptSaveBits T
|
||||
poptSaveInt T
|
||||
poptSaveLong T
|
||||
poptSaveLongLong T
|
||||
poptSaveShort T
|
||||
poptSaveString T
|
||||
poptSetExecPath T
|
||||
poptSetOtherOptionHelp T
|
||||
poptStrerror T
|
||||
poptStrippedArgv T
|
||||
poptStuffArgs T
|
||||
Reference in New Issue
Block a user