You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Dale Ghent (JIRA)" <ji...@apache.org> on 2013/03/01 00:15:13 UTC

[jira] [Commented] (TS-1733) Retool tsxs so that it can compile multiple source files

    [ https://issues.apache.org/jira/browse/TS-1733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13590031#comment-13590031 ] 

Dale Ghent commented on TS-1733:
--------------------------------

Updated patch so that tsxs also observes .cpp .CPP .cxx .CXX as C++ source file extensions.
                
> Retool tsxs so that it can compile multiple source files
> --------------------------------------------------------
>
>                 Key: TS-1733
>                 URL: https://issues.apache.org/jira/browse/TS-1733
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Plugins
>            Reporter: Dale Ghent
>            Assignee: Phil Sorber
>            Priority: Minor
>         Attachments: ts-tsxs-patch.txt
>
>
> tsxs currently has the -c (and -C, for C++) flags to specify the source files it should compile. The problem is that it can't handle multiple invocations of -[c|C] cleanly or multiple source files listed following -[c|C]
> This patch changes tsxs to allow for the above. tsxs is written in shell, and unfortunately getopts(1) does not allow for multiple values for an argument (ie, you cannot specify "-c foo.c bar.c baz.c ..." In order to get around this, the -c and -C flags were removed and any and all source files should now be specified at the end of the command, like so:
> tsxs -v -o module.so src1.c src2.c src3.c ...
> This patch effects that change and also updates the various Makefiles, READMEs, and source file comments to reflect the new argument structure.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira