build: do not unconditionally link libpthread
[oweals/opkg-lede.git] / src / opkg-cl.c
index e2f10a11852eca066996f9b0416b96e59354d9a6..29072313929f9602bb97bb6fd6bf0fefcdd6cf68 100644 (file)
    opkg command line frontend using libopkg
 */
 
+#define _GNU_SOURCE
 #include "config.h"
 
 #include <stdio.h>
 #include <getopt.h>
+#include <fnmatch.h>
 
 #include "opkg_conf.h"
 #include "opkg_cmd.h"
@@ -387,7 +389,8 @@ int main(int argc, char *argv[])
 
        cmd_name = argv[opts++];
 
-       if (!strcmp(cmd_name, "print-architecture") ||
+       if (!strcmp(cmd_name, "install") ||
+           !strcmp(cmd_name, "print-architecture") ||
            !strcmp(cmd_name, "print_architecture") ||
            !strcmp(cmd_name, "print-installation-architecture") ||
            !strcmp(cmd_name, "print_installation_architecture"))
@@ -395,6 +398,7 @@ int main(int argc, char *argv[])
 
        if (!strcmp(cmd_name, "flag") ||
            !strcmp(cmd_name, "configure") ||
+           !strcmp(cmd_name, "install") ||
            !strcmp(cmd_name, "remove") ||
            !strcmp(cmd_name, "files") ||
            !strcmp(cmd_name, "search") ||