~ubuntu-branches/ubuntu/wily/freehdl/wily-proposed

« back to all changes in this revision

Viewing changes to v2cc/gvhdl.in

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-10-09 10:24:01 UTC
  • mfrom: (5.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20141009102401-fhieerj8vm9sk3os
Tags: 0.0.8-2.1
* Non-maintainer upload.
* Build-depend on libtool-bin. Closes: #761746.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
my $cc = "@CXX@";
7
7
my $libtool = "@SYSTEM_LIBTOOL@";
8
 
my $libtool_options = "--mode=link";
 
8
my $libtool_options = "--mode=link --tag CXX";
9
9
my $vhdl_source_name = "";
10
10
my $source = "";
11
11
my $includes = "";
218
218
    # Comiling cc -> o
219
219
    ##############################################################
220
220
    $_ = $out_file_name;
221
 
    s/\.[^\.]*/\.o/i;
 
221
    s/\.[^\.]*$/\.o/i;
222
222
    $object_files .= " " . $_;
223
223
    
224
224
    if ($no_cpp_compile == 0) {
265
265
  ##############################################################
266
266
  if ($do_link == 1) {
267
267
    $_ = $source_files[0];
268
 
    s/\.[^\.]*//i;
 
268
    s/\.[^\.]*$//i;
269
269
    my $target_name = $_;
270
270
 
271
271
    my $cmd = "$libtool $libtool_options $cc $cpp_options $main_file_name.o $object_files $cpplibs -o $target_name";